Skip to content

Commit ff3ce48

Browse files
Bogicevic Sasabjorn-helgaas
authored andcommitted
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>
1 parent 1d1e8cd commit ff3ce48

39 files changed

Lines changed: 1432 additions & 1432 deletions

‎drivers/pci/access.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DEFINE_RAW_SPINLOCK(pci_lock);
2525
#define PCI_word_BAD (pos & 1)
2626
#define PCI_dword_BAD (pos & 3)
2727

28-
#define PCI_OP_READ(size,type,len) \
28+
#define PCI_OP_READ(size, type, len) \
2929
int pci_bus_read_config_##size \
3030
(struct pci_bus *bus, unsigned int devfn, int pos, type *value) \
3131
{ \
@@ -40,7 +40,7 @@ int pci_bus_read_config_##size \
4040
return res; \
4141
}
4242

43-
#define PCI_OP_WRITE(size,type,len) \
43+
#define PCI_OP_WRITE(size, type, len) \
4444
int pci_bus_write_config_##size \
4545
(struct pci_bus *bus, unsigned int devfn, int pos, type value) \
4646
{ \
@@ -231,7 +231,7 @@ static noinline void pci_wait_cfg(struct pci_dev *dev)
231231
}
232232

233233
/* Returns 0 on success, negative values indicate error. */
234-
#define PCI_USER_READ_CONFIG(size,type) \
234+
#define PCI_USER_READ_CONFIG(size, type) \
235235
int pci_user_read_config_##size \
236236
(struct pci_dev *dev, int pos, type *val) \
237237
{ \
@@ -251,7 +251,7 @@ int pci_user_read_config_##size \
251251
EXPORT_SYMBOL_GPL(pci_user_read_config_##size);
252252

253253
/* Returns 0 on success, negative values indicate error. */
254-
#define PCI_USER_WRITE_CONFIG(size,type) \
254+
#define PCI_USER_WRITE_CONFIG(size, type) \
255255
int pci_user_write_config_##size \
256256
(struct pci_dev *dev, int pos, type val) \
257257
{ \

‎drivers/pci/host/pci-imx6.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static int pcie_phy_wait_ack(void __iomem *dbi_base, int addr)
122122
}
123123

124124
/* Read from the 16-bit PCIe PHY control registers (not memory-mapped) */
125-
static int pcie_phy_read(void __iomem *dbi_base, int addr , int *data)
125+
static int pcie_phy_read(void __iomem *dbi_base, int addr, int *data)
126126
{
127127
u32 val, phy_ctl;
128128
int ret;

‎drivers/pci/hotplug/acpi_pcihp.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636

3737
#define MY_NAME "acpi_pcihp"
3838

39-
#define dbg(fmt, arg...) do { if (debug_acpi) printk(KERN_DEBUG "%s: %s: " fmt , MY_NAME , __func__ , ## arg); } while (0)
40-
#define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg)
41-
#define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg)
42-
#define warn(format, arg...) printk(KERN_WARNING "%s: " format , MY_NAME , ## arg)
39+
#define dbg(fmt, arg...) do { if (debug_acpi) printk(KERN_DEBUG "%s: %s: " fmt, MY_NAME, __func__, ## arg); } while (0)
40+
#define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
41+
#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
42+
#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
4343

4444
#define METHOD_NAME__SUN "_SUN"
4545
#define METHOD_NAME_OSHP "OSHP"
@@ -132,7 +132,7 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev, u32 flags)
132132

133133
while (handle) {
134134
acpi_get_name(handle, ACPI_FULL_PATHNAME, &string);
135-
dbg("Trying to get hotplug control for %s \n",
135+
dbg("Trying to get hotplug control for %s\n",
136136
(char *)string.pointer);
137137
status = acpi_run_oshp(handle);
138138
if (ACPI_SUCCESS(status))

‎drivers/pci/hotplug/acpiphp.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ struct acpiphp_attention_info
181181
/* function prototypes */
182182

183183
/* acpiphp_core.c */
184-
int acpiphp_register_attention(struct acpiphp_attention_info*info);
184+
int acpiphp_register_attention(struct acpiphp_attention_info *info);
185185
int acpiphp_unregister_attention(struct acpiphp_attention_info *info);
186186
int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot, unsigned int sun);
187187
void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot);

‎drivers/pci/hotplug/acpiphp_core.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ MODULE_LICENSE("GPL");
6363
MODULE_PARM_DESC(disable, "disable acpiphp driver");
6464
module_param_named(disable, acpiphp_disabled, bool, 0444);
6565

66-
static int enable_slot (struct hotplug_slot *slot);
67-
static int disable_slot (struct hotplug_slot *slot);
68-
static int set_attention_status (struct hotplug_slot *slot, u8 value);
69-
static int get_power_status (struct hotplug_slot *slot, u8 *value);
70-
static int get_attention_status (struct hotplug_slot *slot, u8 *value);
71-
static int get_latch_status (struct hotplug_slot *slot, u8 *value);
72-
static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
66+
static int enable_slot(struct hotplug_slot *slot);
67+
static int disable_slot(struct hotplug_slot *slot);
68+
static int set_attention_status(struct hotplug_slot *slot, u8 value);
69+
static int get_power_status(struct hotplug_slot *slot, u8 *value);
70+
static int get_attention_status(struct hotplug_slot *slot, u8 *value);
71+
static int get_latch_status(struct hotplug_slot *slot, u8 *value);
72+
static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
7373

7474
static struct hotplug_slot_ops acpi_hotplug_slot_ops = {
7575
.enable_slot = enable_slot,

‎drivers/pci/hotplug/acpiphp_glue.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ static void acpiphp_sanitize_bus(struct pci_bus *bus)
707707
unsigned long type_mask = IORESOURCE_IO | IORESOURCE_MEM;
708708

709709
list_for_each_entry_safe_reverse(dev, tmp, &bus->devices, bus_list) {
710-
for (i=0; i<PCI_BRIDGE_RESOURCES; i++) {
710+
for (i = 0; i < PCI_BRIDGE_RESOURCES; i++) {
711711
struct resource *res = &dev->resource[i];
712712
if ((res->flags & type_mask) && !res->start &&
713713
res->end) {

‎drivers/pci/hotplug/acpiphp_ibm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ static int ibm_get_table_from_acpi(char **bufp)
325325
}
326326

327327
size = 0;
328-
for (i=0; i<package->package.count; i++) {
328+
for (i = 0; i < package->package.count; i++) {
329329
memcpy(&lbuf[size],
330330
package->package.elements[i].buffer.pointer,
331331
package->package.elements[i].buffer.length);

‎drivers/pci/hotplug/cpci_hotplug.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ struct slot {
5252
};
5353

5454
struct cpci_hp_controller_ops {
55-
int (*query_enum) (void);
56-
int (*enable_irq) (void);
57-
int (*disable_irq) (void);
58-
int (*check_irq) (void *dev_id);
59-
int (*hardware_test) (struct slot *slot, u32 value);
60-
u8 (*get_power) (struct slot *slot);
61-
int (*set_power) (struct slot *slot, int value);
55+
int (*query_enum)(void);
56+
int (*enable_irq)(void);
57+
int (*disable_irq)(void);
58+
int (*check_irq)(void *dev_id);
59+
int (*hardware_test)(struct slot *slot, u32 value);
60+
u8 (*get_power)(struct slot *slot);
61+
int (*set_power)(struct slot *slot, int value);
6262
};
6363

6464
struct cpci_hp_controller {

‎drivers/pci/hotplug/cpci_hotplug_core.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
#define dbg(format, arg...) \
4646
do { \
4747
if (cpci_debug) \
48-
printk (KERN_DEBUG "%s: " format "\n", \
49-
MY_NAME , ## arg); \
48+
printk(KERN_DEBUG "%s: " format "\n", \
49+
MY_NAME, ## arg); \
5050
} while (0)
51-
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg)
52-
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)
53-
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)
51+
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME, ## arg)
52+
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME, ## arg)
53+
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME, ## arg)
5454

5555
/* local variables */
5656
static DECLARE_RWSEM(list_rwsem);
@@ -238,21 +238,21 @@ cpci_hp_register_bus(struct pci_bus *bus, u8 first, u8 last)
238238
* with the pci_hotplug subsystem.
239239
*/
240240
for (i = first; i <= last; ++i) {
241-
slot = kzalloc(sizeof (struct slot), GFP_KERNEL);
241+
slot = kzalloc(sizeof(struct slot), GFP_KERNEL);
242242
if (!slot) {
243243
status = -ENOMEM;
244244
goto error;
245245
}
246246

247247
hotplug_slot =
248-
kzalloc(sizeof (struct hotplug_slot), GFP_KERNEL);
248+
kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL);
249249
if (!hotplug_slot) {
250250
status = -ENOMEM;
251251
goto error_slot;
252252
}
253253
slot->hotplug_slot = hotplug_slot;
254254

255-
info = kzalloc(sizeof (struct hotplug_slot_info), GFP_KERNEL);
255+
info = kzalloc(sizeof(struct hotplug_slot_info), GFP_KERNEL);
256256
if (!info) {
257257
status = -ENOMEM;
258258
goto error_hpslot;

‎drivers/pci/hotplug/cpci_hotplug_pci.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ extern int cpci_debug;
3838
#define dbg(format, arg...) \
3939
do { \
4040
if (cpci_debug) \
41-
printk (KERN_DEBUG "%s: " format "\n", \
42-
MY_NAME , ## arg); \
41+
printk(KERN_DEBUG "%s: " format "\n", \
42+
MY_NAME, ## arg); \
4343
} while (0)
44-
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg)
45-
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)
46-
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)
44+
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME, ## arg)
45+
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME, ## arg)
46+
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME, ## arg)
4747

4848

4949
u8 cpci_get_attention_status(struct slot *slot)

0 commit comments

Comments
 (0)