PCI Hotplug: cpqphp: stray whitespace cleanups
Clean up all stray whitespace issues, such as trailing whitespace, spaces before tabs, etc. and whatever else vim's c_space_errors highlights in red. Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
d09ee9687e
commit
861fefbf55
|
@ -150,25 +150,25 @@ struct ctrl_reg { /* offset */
|
|||
|
||||
/* offsets to the controller registers based on the above structure layout */
|
||||
enum ctrl_offsets {
|
||||
SLOT_RST = offsetof(struct ctrl_reg, slot_RST),
|
||||
SLOT_RST = offsetof(struct ctrl_reg, slot_RST),
|
||||
SLOT_ENABLE = offsetof(struct ctrl_reg, slot_enable),
|
||||
MISC = offsetof(struct ctrl_reg, misc),
|
||||
LED_CONTROL = offsetof(struct ctrl_reg, led_control),
|
||||
INT_INPUT_CLEAR = offsetof(struct ctrl_reg, int_input_clear),
|
||||
INT_MASK = offsetof(struct ctrl_reg, int_mask),
|
||||
CTRL_RESERVED0 = offsetof(struct ctrl_reg, reserved0),
|
||||
INT_MASK = offsetof(struct ctrl_reg, int_mask),
|
||||
CTRL_RESERVED0 = offsetof(struct ctrl_reg, reserved0),
|
||||
CTRL_RESERVED1 = offsetof(struct ctrl_reg, reserved1),
|
||||
CTRL_RESERVED2 = offsetof(struct ctrl_reg, reserved1),
|
||||
GEN_OUTPUT_AB = offsetof(struct ctrl_reg, gen_output_AB),
|
||||
NON_INT_INPUT = offsetof(struct ctrl_reg, non_int_input),
|
||||
GEN_OUTPUT_AB = offsetof(struct ctrl_reg, gen_output_AB),
|
||||
NON_INT_INPUT = offsetof(struct ctrl_reg, non_int_input),
|
||||
CTRL_RESERVED3 = offsetof(struct ctrl_reg, reserved3),
|
||||
CTRL_RESERVED4 = offsetof(struct ctrl_reg, reserved4),
|
||||
CTRL_RESERVED5 = offsetof(struct ctrl_reg, reserved5),
|
||||
CTRL_RESERVED6 = offsetof(struct ctrl_reg, reserved6),
|
||||
CTRL_RESERVED7 = offsetof(struct ctrl_reg, reserved7),
|
||||
CTRL_RESERVED8 = offsetof(struct ctrl_reg, reserved8),
|
||||
SLOT_MASK = offsetof(struct ctrl_reg, slot_mask),
|
||||
CTRL_RESERVED9 = offsetof(struct ctrl_reg, reserved9),
|
||||
SLOT_MASK = offsetof(struct ctrl_reg, slot_mask),
|
||||
CTRL_RESERVED9 = offsetof(struct ctrl_reg, reserved9),
|
||||
CTRL_RESERVED10 = offsetof(struct ctrl_reg, reserved10),
|
||||
CTRL_RESERVED11 = offsetof(struct ctrl_reg, reserved11),
|
||||
SLOT_SERR = offsetof(struct ctrl_reg, slot_SERR),
|
||||
|
@ -220,15 +220,15 @@ struct slot_rt {
|
|||
/* offsets to the hotplug slot resource table registers based on the above structure layout */
|
||||
enum slot_rt_offsets {
|
||||
DEV_FUNC = offsetof(struct slot_rt, dev_func),
|
||||
PRIMARY_BUS = offsetof(struct slot_rt, primary_bus),
|
||||
SECONDARY_BUS = offsetof(struct slot_rt, secondary_bus),
|
||||
MAX_BUS = offsetof(struct slot_rt, max_bus),
|
||||
IO_BASE = offsetof(struct slot_rt, io_base),
|
||||
IO_LENGTH = offsetof(struct slot_rt, io_length),
|
||||
MEM_BASE = offsetof(struct slot_rt, mem_base),
|
||||
MEM_LENGTH = offsetof(struct slot_rt, mem_length),
|
||||
PRE_MEM_BASE = offsetof(struct slot_rt, pre_mem_base),
|
||||
PRE_MEM_LENGTH = offsetof(struct slot_rt, pre_mem_length),
|
||||
PRIMARY_BUS = offsetof(struct slot_rt, primary_bus),
|
||||
SECONDARY_BUS = offsetof(struct slot_rt, secondary_bus),
|
||||
MAX_BUS = offsetof(struct slot_rt, max_bus),
|
||||
IO_BASE = offsetof(struct slot_rt, io_base),
|
||||
IO_LENGTH = offsetof(struct slot_rt, io_length),
|
||||
MEM_BASE = offsetof(struct slot_rt, mem_base),
|
||||
MEM_LENGTH = offsetof(struct slot_rt, mem_length),
|
||||
PRE_MEM_BASE = offsetof(struct slot_rt, pre_mem_base),
|
||||
PRE_MEM_LENGTH = offsetof(struct slot_rt, pre_mem_length),
|
||||
};
|
||||
|
||||
struct pci_func {
|
||||
|
@ -586,7 +586,7 @@ static inline u8 read_slot_enable(struct controller *ctrl)
|
|||
static inline u8 get_controller_speed(struct controller *ctrl)
|
||||
{
|
||||
u8 curr_freq;
|
||||
u16 misc;
|
||||
u16 misc;
|
||||
|
||||
if (ctrl->pcix_support) {
|
||||
curr_freq = readb(ctrl->hpc_reg + NEXT_CURR_FREQ);
|
||||
|
@ -602,8 +602,8 @@ static inline u8 get_controller_speed(struct controller *ctrl)
|
|||
return PCI_SPEED_33MHz;
|
||||
}
|
||||
|
||||
misc = readw(ctrl->hpc_reg + MISC);
|
||||
return (misc & 0x0800) ? PCI_SPEED_66MHz : PCI_SPEED_33MHz;
|
||||
misc = readw(ctrl->hpc_reg + MISC);
|
||||
return (misc & 0x0800) ? PCI_SPEED_66MHz : PCI_SPEED_33MHz;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
* Send feedback to <greg@kroah.com>
|
||||
*
|
||||
* Jan 12, 2003 - Added 66/100/133MHz PCI-X support,
|
||||
* Torben Mathiasen <torben.mathiasen@hp.com>
|
||||
* Torben Mathiasen <torben.mathiasen@hp.com>
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -100,8 +100,8 @@ static struct hotplug_slot_ops cpqphp_hotplug_slot_ops = {
|
|||
.get_attention_status = get_attention_status,
|
||||
.get_latch_status = get_latch_status,
|
||||
.get_adapter_status = get_adapter_status,
|
||||
.get_max_bus_speed = get_max_bus_speed,
|
||||
.get_cur_bus_speed = get_cur_bus_speed,
|
||||
.get_max_bus_speed = get_max_bus_speed,
|
||||
.get_cur_bus_speed = get_cur_bus_speed,
|
||||
};
|
||||
|
||||
|
||||
|
@ -300,7 +300,7 @@ static void __iomem *get_SMBIOS_entry(void __iomem *smbios_start,
|
|||
}
|
||||
|
||||
while (previous) {
|
||||
if (readb(previous + SMBIOS_GENERIC_TYPE) != type) {
|
||||
if (readb(previous + SMBIOS_GENERIC_TYPE) != type) {
|
||||
previous = get_subsequent_smbios_entry(smbios_start,
|
||||
smbios_table, previous);
|
||||
} else {
|
||||
|
@ -1291,7 +1291,6 @@ err_disable_device:
|
|||
return rc;
|
||||
}
|
||||
|
||||
|
||||
static int one_time_init(void)
|
||||
{
|
||||
int loop;
|
||||
|
@ -1361,7 +1360,6 @@ error:
|
|||
return retval;
|
||||
}
|
||||
|
||||
|
||||
static void __exit unload_cpqphpd(void)
|
||||
{
|
||||
struct pci_func *next;
|
||||
|
@ -1475,8 +1473,6 @@ static void __exit unload_cpqphpd(void)
|
|||
iounmap(smbios_start);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static struct pci_device_id hpcd_pci_tbl[] = {
|
||||
{
|
||||
/* handle any PCI Hotplug controller */
|
||||
|
@ -1494,8 +1490,6 @@ static struct pci_device_id hpcd_pci_tbl[] = {
|
|||
|
||||
MODULE_DEVICE_TABLE(pci, hpcd_pci_tbl);
|
||||
|
||||
|
||||
|
||||
static struct pci_driver cpqhpc_driver = {
|
||||
.name = "compaq_pci_hotplug",
|
||||
.id_table = hpcd_pci_tbl,
|
||||
|
@ -1503,8 +1497,6 @@ static struct pci_driver cpqhpc_driver = {
|
|||
/* remove: cpqhpc_remove_one, */
|
||||
};
|
||||
|
||||
|
||||
|
||||
static int __init cpqhpc_init(void)
|
||||
{
|
||||
int result;
|
||||
|
@ -1518,7 +1510,6 @@ static int __init cpqhpc_init(void)
|
|||
return result;
|
||||
}
|
||||
|
||||
|
||||
static void __exit cpqhpc_cleanup(void)
|
||||
{
|
||||
dbg("unload_cpqphpd()\n");
|
||||
|
@ -1529,8 +1520,5 @@ static void __exit cpqhpc_cleanup(void)
|
|||
cpqhp_shutdown_debugfs();
|
||||
}
|
||||
|
||||
|
||||
module_init(cpqhpc_init);
|
||||
module_exit(cpqhpc_cleanup);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue