diff options
author | Ryan Desfosses <ryan@desfo.org> | 2014-04-18 20:13:49 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-06-10 22:20:19 -0400 |
commit | 3c78bc61f5ef3bc87e7f94f67ec737d2273f120b (patch) | |
tree | 490efb8676389718e78a4d6775ad668538ecaf4f /drivers/pci/hotplug/ibmphp_core.c | |
parent | b7fe943421396b61b9f7a97c2554ed999e0f3658 (diff) |
PCI: Whitespace cleanup
Fix various whitespace errors.
No functional change.
[bhelgaas: fix other similar problems]
Signed-off-by: Ryan Desfosses <ryan@desfo.org>
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 | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c index cf3ac1e4b099..5794057f7ec1 100644 --- a/drivers/pci/hotplug/ibmphp_core.c +++ b/drivers/pci/hotplug/ibmphp_core.c | |||
@@ -74,7 +74,7 @@ static inline int get_max_adapter_speed (struct hotplug_slot *hs, u8 *value) | |||
74 | static inline int get_cur_bus_info(struct slot **sl) | 74 | static inline int get_cur_bus_info(struct slot **sl) |
75 | { | 75 | { |
76 | int rc = 1; | 76 | int rc = 1; |
77 | struct slot * slot_cur = *sl; | 77 | struct slot *slot_cur = *sl; |
78 | 78 | ||
79 | debug("options = %x\n", slot_cur->ctrl->options); | 79 | debug("options = %x\n", slot_cur->ctrl->options); |
80 | debug("revision = %x\n", slot_cur->ctrl->revision); | 80 | debug("revision = %x\n", slot_cur->ctrl->revision); |
@@ -114,8 +114,8 @@ static inline int slot_update(struct slot **sl) | |||
114 | 114 | ||
115 | static int __init get_max_slots (void) | 115 | static int __init get_max_slots (void) |
116 | { | 116 | { |
117 | struct slot * slot_cur; | 117 | struct slot *slot_cur; |
118 | struct list_head * tmp; | 118 | struct list_head *tmp; |
119 | u8 slot_count = 0; | 119 | u8 slot_count = 0; |
120 | 120 | ||
121 | list_for_each(tmp, &ibmphp_slot_head) { | 121 | list_for_each(tmp, &ibmphp_slot_head) { |
@@ -280,7 +280,7 @@ static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) | |||
280 | return rc; | 280 | return rc; |
281 | } | 281 | } |
282 | 282 | ||
283 | static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value) | 283 | static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) |
284 | { | 284 | { |
285 | int rc = -ENODEV; | 285 | int rc = -ENODEV; |
286 | struct slot *pslot; | 286 | struct slot *pslot; |
@@ -311,7 +311,7 @@ static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value) | |||
311 | return rc; | 311 | return rc; |
312 | } | 312 | } |
313 | 313 | ||
314 | static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 * value) | 314 | static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) |
315 | { | 315 | { |
316 | int rc = -ENODEV; | 316 | int rc = -ENODEV; |
317 | struct slot *pslot; | 317 | struct slot *pslot; |
@@ -338,7 +338,7 @@ static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 * value) | |||
338 | } | 338 | } |
339 | 339 | ||
340 | 340 | ||
341 | static int get_power_status(struct hotplug_slot *hotplug_slot, u8 * value) | 341 | static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) |
342 | { | 342 | { |
343 | int rc = -ENODEV; | 343 | int rc = -ENODEV; |
344 | struct slot *pslot; | 344 | struct slot *pslot; |
@@ -364,7 +364,7 @@ static int get_power_status(struct hotplug_slot *hotplug_slot, u8 * value) | |||
364 | return rc; | 364 | return rc; |
365 | } | 365 | } |
366 | 366 | ||
367 | static int get_adapter_present(struct hotplug_slot *hotplug_slot, u8 * value) | 367 | static int get_adapter_present(struct hotplug_slot *hotplug_slot, u8 *value) |
368 | { | 368 | { |
369 | int rc = -ENODEV; | 369 | int rc = -ENODEV; |
370 | struct slot *pslot; | 370 | struct slot *pslot; |
@@ -433,7 +433,7 @@ static int get_max_bus_speed(struct slot *slot) | |||
433 | } | 433 | } |
434 | 434 | ||
435 | /* | 435 | /* |
436 | static int get_max_adapter_speed_1(struct hotplug_slot *hotplug_slot, u8 * value, u8 flag) | 436 | static int get_max_adapter_speed_1(struct hotplug_slot *hotplug_slot, u8 *value, u8 flag) |
437 | { | 437 | { |
438 | int rc = -ENODEV; | 438 | int rc = -ENODEV; |
439 | struct slot *pslot; | 439 | struct slot *pslot; |
@@ -471,7 +471,7 @@ static int get_max_adapter_speed_1(struct hotplug_slot *hotplug_slot, u8 * value | |||
471 | return rc; | 471 | return rc; |
472 | } | 472 | } |
473 | 473 | ||
474 | static int get_bus_name(struct hotplug_slot *hotplug_slot, char * value) | 474 | static int get_bus_name(struct hotplug_slot *hotplug_slot, char *value) |
475 | { | 475 | { |
476 | int rc = -ENODEV; | 476 | int rc = -ENODEV; |
477 | struct slot *pslot = NULL; | 477 | struct slot *pslot = NULL; |
@@ -671,7 +671,7 @@ static struct pci_func *ibm_slot_find(u8 busno, u8 device, u8 function) | |||
671 | { | 671 | { |
672 | struct pci_func *func_cur; | 672 | struct pci_func *func_cur; |
673 | struct slot *slot_cur; | 673 | struct slot *slot_cur; |
674 | struct list_head * tmp; | 674 | struct list_head *tmp; |
675 | list_for_each(tmp, &ibmphp_slot_head) { | 675 | list_for_each(tmp, &ibmphp_slot_head) { |
676 | slot_cur = list_entry(tmp, struct slot, ibm_slot_list); | 676 | slot_cur = list_entry(tmp, struct slot, ibm_slot_list); |
677 | if (slot_cur->func) { | 677 | if (slot_cur->func) { |
@@ -696,8 +696,8 @@ static struct pci_func *ibm_slot_find(u8 busno, u8 device, u8 function) | |||
696 | static void free_slots(void) | 696 | static void free_slots(void) |
697 | { | 697 | { |
698 | struct slot *slot_cur; | 698 | struct slot *slot_cur; |
699 | struct list_head * tmp; | 699 | struct list_head *tmp; |
700 | struct list_head * next; | 700 | struct list_head *next; |
701 | 701 | ||
702 | debug("%s -- enter\n", __func__); | 702 | debug("%s -- enter\n", __func__); |
703 | 703 | ||
@@ -825,10 +825,10 @@ static int ibm_configure_device(struct pci_func *func) | |||
825 | /******************************************************* | 825 | /******************************************************* |
826 | * Returns whether the bus is empty or not | 826 | * Returns whether the bus is empty or not |
827 | *******************************************************/ | 827 | *******************************************************/ |
828 | static int is_bus_empty(struct slot * slot_cur) | 828 | static int is_bus_empty(struct slot *slot_cur) |
829 | { | 829 | { |
830 | int rc; | 830 | int rc; |
831 | struct slot * tmp_slot; | 831 | struct slot *tmp_slot; |
832 | u8 i = slot_cur->bus_on->slot_min; | 832 | u8 i = slot_cur->bus_on->slot_min; |
833 | 833 | ||
834 | while (i <= slot_cur->bus_on->slot_max) { | 834 | while (i <= slot_cur->bus_on->slot_max) { |
@@ -856,7 +856,7 @@ static int is_bus_empty(struct slot * slot_cur) | |||
856 | * Parameters: slot | 856 | * Parameters: slot |
857 | * Returns: bus is set (0) or error code | 857 | * Returns: bus is set (0) or error code |
858 | ***********************************************************/ | 858 | ***********************************************************/ |
859 | static int set_bus(struct slot * slot_cur) | 859 | static int set_bus(struct slot *slot_cur) |
860 | { | 860 | { |
861 | int rc; | 861 | int rc; |
862 | u8 speed; | 862 | u8 speed; |
@@ -956,7 +956,7 @@ static int set_bus(struct slot * slot_cur) | |||
956 | static int check_limitations(struct slot *slot_cur) | 956 | static int check_limitations(struct slot *slot_cur) |
957 | { | 957 | { |
958 | u8 i; | 958 | u8 i; |
959 | struct slot * tmp_slot; | 959 | struct slot *tmp_slot; |
960 | u8 count = 0; | 960 | u8 count = 0; |
961 | u8 limitation = 0; | 961 | u8 limitation = 0; |
962 | 962 | ||