diff options
author | Bogicevic Sasa <brutallesale@gmail.com> | 2015-12-27 16:21:11 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-01-08 11:35:24 -0500 |
commit | ff3ce480e8b59fbc0f459476fe1b5451464592a5 (patch) | |
tree | 46500e2528f05508dd8923306368df2855680491 /drivers/pci/hotplug/ibmphp_core.c | |
parent | 1d1e8cdc823b9c0ed9b51dffef59b874b0aac808 (diff) |
PCI: Fix all whitespace issues
Fix all whitespace issues (missing or needed whitespace) in all files in
drivers/pci. Code is compiled with allyesconfig before and after code
changes and objects are recorded and checked with objdiff and they are not
changed after this commit.
Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_core.c')
-rw-r--r-- | drivers/pci/hotplug/ibmphp_core.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c index 15302475f5b7..4504d3ee86c9 100644 --- a/drivers/pci/hotplug/ibmphp_core.c +++ b/drivers/pci/hotplug/ibmphp_core.c | |||
@@ -39,11 +39,11 @@ | |||
39 | #include <asm/io_apic.h> | 39 | #include <asm/io_apic.h> |
40 | #include "ibmphp.h" | 40 | #include "ibmphp.h" |
41 | 41 | ||
42 | #define attn_on(sl) ibmphp_hpc_writeslot (sl, HPC_SLOT_ATTNON) | 42 | #define attn_on(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_ATTNON) |
43 | #define attn_off(sl) ibmphp_hpc_writeslot (sl, HPC_SLOT_ATTNOFF) | 43 | #define attn_off(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_ATTNOFF) |
44 | #define attn_LED_blink(sl) ibmphp_hpc_writeslot (sl, HPC_SLOT_BLINKLED) | 44 | #define attn_LED_blink(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_BLINKLED) |
45 | #define get_ctrl_revision(sl, rev) ibmphp_hpc_readslot (sl, READ_REVLEVEL, rev) | 45 | #define get_ctrl_revision(sl, rev) ibmphp_hpc_readslot(sl, READ_REVLEVEL, rev) |
46 | #define get_hpc_options(sl, opt) ibmphp_hpc_readslot (sl, READ_HPCOPTIONS, opt) | 46 | #define get_hpc_options(sl, opt) ibmphp_hpc_readslot(sl, READ_HPCOPTIONS, opt) |
47 | 47 | ||
48 | #define DRIVER_VERSION "0.6" | 48 | #define DRIVER_VERSION "0.6" |
49 | #define DRIVER_DESC "IBM Hot Plug PCI Controller Driver" | 49 | #define DRIVER_DESC "IBM Hot Plug PCI Controller Driver" |
@@ -52,9 +52,9 @@ int ibmphp_debug; | |||
52 | 52 | ||
53 | static bool debug; | 53 | static bool debug; |
54 | module_param(debug, bool, S_IRUGO | S_IWUSR); | 54 | module_param(debug, bool, S_IRUGO | S_IWUSR); |
55 | MODULE_PARM_DESC (debug, "Debugging mode enabled or not"); | 55 | MODULE_PARM_DESC(debug, "Debugging mode enabled or not"); |
56 | MODULE_LICENSE ("GPL"); | 56 | MODULE_LICENSE("GPL"); |
57 | MODULE_DESCRIPTION (DRIVER_DESC); | 57 | MODULE_DESCRIPTION(DRIVER_DESC); |
58 | 58 | ||
59 | struct pci_bus *ibmphp_pci_bus; | 59 | struct pci_bus *ibmphp_pci_bus; |
60 | static int max_slots; | 60 | static int max_slots; |
@@ -113,7 +113,7 @@ static inline int slot_update(struct slot **sl) | |||
113 | return rc; | 113 | return rc; |
114 | } | 114 | } |
115 | 115 | ||
116 | static int __init get_max_slots (void) | 116 | static int __init get_max_slots(void) |
117 | { | 117 | { |
118 | struct slot *slot_cur; | 118 | struct slot *slot_cur; |
119 | struct list_head *tmp; | 119 | struct list_head *tmp; |
@@ -459,7 +459,7 @@ static int get_max_adapter_speed_1(struct hotplug_slot *hotplug_slot, u8 *value, | |||
459 | *value = SLOT_SPEED(myslot.ext_status); | 459 | *value = SLOT_SPEED(myslot.ext_status); |
460 | } else | 460 | } else |
461 | *value = MAX_ADAPTER_NONE; | 461 | *value = MAX_ADAPTER_NONE; |
462 | } | 462 | } |
463 | } | 463 | } |
464 | 464 | ||
465 | if (flag) | 465 | if (flag) |
@@ -620,11 +620,11 @@ int ibmphp_update_slot_info(struct slot *slot_cur) | |||
620 | info->attention_status = SLOT_ATTN(slot_cur->status, | 620 | info->attention_status = SLOT_ATTN(slot_cur->status, |
621 | slot_cur->ext_status); | 621 | slot_cur->ext_status); |
622 | info->latch_status = SLOT_LATCH(slot_cur->status); | 622 | info->latch_status = SLOT_LATCH(slot_cur->status); |
623 | if (!SLOT_PRESENT(slot_cur->status)) { | 623 | if (!SLOT_PRESENT(slot_cur->status)) { |
624 | info->adapter_status = 0; | 624 | info->adapter_status = 0; |
625 | /* info->max_adapter_speed_status = MAX_ADAPTER_NONE; */ | 625 | /* info->max_adapter_speed_status = MAX_ADAPTER_NONE; */ |
626 | } else { | 626 | } else { |
627 | info->adapter_status = 1; | 627 | info->adapter_status = 1; |
628 | /* get_max_adapter_speed_1(slot_cur->hotplug_slot, | 628 | /* get_max_adapter_speed_1(slot_cur->hotplug_slot, |
629 | &info->max_adapter_speed_status, 0); */ | 629 | &info->max_adapter_speed_status, 0); */ |
630 | } | 630 | } |
@@ -866,7 +866,7 @@ static int set_bus(struct slot *slot_cur) | |||
866 | int retval; | 866 | int retval; |
867 | static struct pci_device_id ciobx[] = { | 867 | static struct pci_device_id ciobx[] = { |
868 | { PCI_DEVICE(PCI_VENDOR_ID_SERVERWORKS, 0x0101) }, | 868 | { PCI_DEVICE(PCI_VENDOR_ID_SERVERWORKS, 0x0101) }, |
869 | { }, | 869 | { }, |
870 | }; | 870 | }; |
871 | 871 | ||
872 | debug("%s - entry slot # %d\n", __func__, slot_cur->number); | 872 | debug("%s - entry slot # %d\n", __func__, slot_cur->number); |
@@ -1182,7 +1182,7 @@ error_power: | |||
1182 | * HOT REMOVING ADAPTER CARD * | 1182 | * HOT REMOVING ADAPTER CARD * |
1183 | * INPUT: POINTER TO THE HOTPLUG SLOT STRUCTURE * | 1183 | * INPUT: POINTER TO THE HOTPLUG SLOT STRUCTURE * |
1184 | * OUTPUT: SUCCESS 0 ; FAILURE: UNCONFIGURE , VALIDATE * | 1184 | * OUTPUT: SUCCESS 0 ; FAILURE: UNCONFIGURE , VALIDATE * |
1185 | DISABLE POWER , * | 1185 | * DISABLE POWER , * |
1186 | **************************************************************/ | 1186 | **************************************************************/ |
1187 | static int ibmphp_disable_slot(struct hotplug_slot *hotplug_slot) | 1187 | static int ibmphp_disable_slot(struct hotplug_slot *hotplug_slot) |
1188 | { | 1188 | { |