Skip to content

Commit f762598

Browse files
committed
PCI: Fix whitespace, capitalization, and spelling errors
Fix whitespace, capitalization, and spelling errors. No functional change. I know "busses" is not an error, but "buses" was more common, so I used it consistently. Signed-off-by: Marta Rybczynska <rybczynska@gmail.com> (pci_reset_bridge_secondary_bus()) Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 4fbf888 commit f762598

65 files changed

Lines changed: 518 additions & 520 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎drivers/pci/ats.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ EXPORT_SYMBOL_GPL(pci_disable_pasid);
410410
* Otherwise is returns a bitmask with supported features. Current
411411
* features reported are:
412412
* PCI_PASID_CAP_EXEC - Execute permission supported
413-
* PCI_PASID_CAP_PRIV - Priviledged mode supported
413+
* PCI_PASID_CAP_PRIV - Privileged mode supported
414414
*/
415415
int pci_pasid_features(struct pci_dev *pdev)
416416
{

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ struct tegra_pcie {
249249
void __iomem *afi;
250250
int irq;
251251

252-
struct list_head busses;
252+
struct list_head buses;
253253
struct resource *cs;
254254

255255
struct resource io;
@@ -399,22 +399,22 @@ static struct tegra_pcie_bus *tegra_pcie_bus_alloc(struct tegra_pcie *pcie,
399399

400400
/*
401401
* Look up a virtual address mapping for the specified bus number. If no such
402-
* mapping existis, try to create one.
402+
* mapping exists, try to create one.
403403
*/
404404
static void __iomem *tegra_pcie_bus_map(struct tegra_pcie *pcie,
405405
unsigned int busnr)
406406
{
407407
struct tegra_pcie_bus *bus;
408408

409-
list_for_each_entry(bus, &pcie->busses, list)
409+
list_for_each_entry(bus, &pcie->buses, list)
410410
if (bus->nr == busnr)
411411
return (void __iomem *)bus->area->addr;
412412

413413
bus = tegra_pcie_bus_alloc(pcie, busnr);
414414
if (IS_ERR(bus))
415415
return NULL;
416416

417-
list_add_tail(&bus->list, &pcie->busses);
417+
list_add_tail(&bus->list, &pcie->buses);
418418

419419
return (void __iomem *)bus->area->addr;
420420
}
@@ -808,7 +808,7 @@ static int tegra_pcie_enable_controller(struct tegra_pcie *pcie)
808808
value &= ~AFI_FUSE_PCIE_T0_GEN2_DIS;
809809
afi_writel(pcie, value, AFI_FUSE);
810810

811-
/* initialze internal PHY, enable up to 16 PCIE lanes */
811+
/* initialize internal PHY, enable up to 16 PCIE lanes */
812812
pads_writel(pcie, 0x0, PADS_CTL_SEL);
813813

814814
/* override IDDQ to 1 on all 4 lanes */
@@ -1624,7 +1624,7 @@ static int tegra_pcie_probe(struct platform_device *pdev)
16241624
if (!pcie)
16251625
return -ENOMEM;
16261626

1627-
INIT_LIST_HEAD(&pcie->busses);
1627+
INIT_LIST_HEAD(&pcie->buses);
16281628
INIT_LIST_HEAD(&pcie->ports);
16291629
pcie->soc_data = match->data;
16301630
pcie->dev = &pdev->dev;

‎drivers/pci/host/pcie-designware.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static int find_valid_pos0(struct pcie_port *pp, int msgvec, int pos, int *pos0)
197197
return -ENOSPC;
198198
/*
199199
* Check if this position is at correct offset.nvec is always a
200-
* power of two. pos0 must be nvec bit alligned.
200+
* power of two. pos0 must be nvec bit aligned.
201201
*/
202202
if (pos % msgvec)
203203
pos += msgvec - (pos % msgvec);

‎drivers/pci/hotplug/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ config HOTPLUG_PCI_RPA_DLPAR
133133

134134
To compile this driver as a module, choose M here: the
135135
module will be called rpadlpar_io.
136-
137-
When in doubt, say N.
136+
137+
When in doubt, say N.
138138

139139
config HOTPLUG_PCI_SGI
140140
tristate "SGI PCI Hotplug Support"

‎drivers/pci/hotplug/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pci_hotplug-objs += cpci_hotplug_core.o \
3131
cpci_hotplug_pci.o
3232
endif
3333
ifdef CONFIG_ACPI
34-
pci_hotplug-objs += acpi_pcihp.o
34+
pci_hotplug-objs += acpi_pcihp.o
3535
endif
3636

3737
cpqphp-objs := cpqphp_core.o \

‎drivers/pci/hotplug/acpiphp_core.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int acpiphp_register_attention(struct acpiphp_attention_info *info)
111111
* @info: must match the pointer used to register
112112
*
113113
* Description: This is used to un-register a hardware specific acpi
114-
* driver that manipulates the attention LED. The pointer to the
114+
* driver that manipulates the attention LED. The pointer to the
115115
* info struct must be the same as the one used to set it.
116116
*/
117117
int acpiphp_unregister_attention(struct acpiphp_attention_info *info)
@@ -169,8 +169,8 @@ static int disable_slot(struct hotplug_slot *hotplug_slot)
169169
* was registered with us. This allows hardware specific
170170
* ACPI implementations to blink the light for us.
171171
*/
172-
static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
173-
{
172+
static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
173+
{
174174
int retval = -ENODEV;
175175

176176
pr_debug("%s - physical_slot = %s\n", __func__,
@@ -182,8 +182,8 @@ static int disable_slot(struct hotplug_slot *hotplug_slot)
182182
} else
183183
attention_info = NULL;
184184
return retval;
185-
}
186-
185+
}
186+
187187

188188
/**
189189
* get_power_status - get power status of a slot
@@ -323,7 +323,7 @@ int acpiphp_register_hotplug_slot(struct acpiphp_slot *acpiphp_slot,
323323
if (retval) {
324324
pr_err("pci_hp_register failed with error %d\n", retval);
325325
goto error_hpslot;
326-
}
326+
}
327327

328328
pr_info("Slot [%s] registered\n", slot_name(slot));
329329

‎drivers/pci/hotplug/acpiphp_glue.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ static acpi_status register_slot(acpi_handle handle, u32 lvl, void *data,
325325

326326
list_add_tail(&slot->node, &bridge->slots);
327327

328-
/* Register slots for ejectable funtions only. */
328+
/* Register slots for ejectable functions only. */
329329
if (acpi_pci_check_ejectable(pbus, handle) || is_dock_device(handle)) {
330330
unsigned long long sun;
331331
int retval;

‎drivers/pci/hotplug/acpiphp_ibm.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static struct bin_attribute ibm_apci_table_attr = {
116116
.read = ibm_read_apci_table,
117117
.write = NULL,
118118
};
119-
static struct acpiphp_attention_info ibm_attention_info =
119+
static struct acpiphp_attention_info ibm_attention_info =
120120
{
121121
.set_attn = ibm_set_attention_status,
122122
.get_attn = ibm_get_attention_status,
@@ -171,9 +171,9 @@ static union apci_descriptor *ibm_slot_from_id(int id)
171171
*/
172172
static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status)
173173
{
174-
union acpi_object args[2];
174+
union acpi_object args[2];
175175
struct acpi_object_list params = { .pointer = args, .count = 2 };
176-
acpi_status stat;
176+
acpi_status stat;
177177
unsigned long long rc;
178178
union apci_descriptor *ibm_slot;
179179

@@ -208,7 +208,7 @@ static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status)
208208
*
209209
* Description: This method is registered with the acpiphp module as a
210210
* callback to do the device specific task of getting the LED status.
211-
*
211+
*
212212
* Because there is no direct method of getting the LED status directly
213213
* from an ACPI call, we read the aPCI table and parse out our
214214
* slot descriptor to read the status from that.
@@ -259,7 +259,7 @@ static void ibm_handle_events(acpi_handle handle, u32 event, void *context)
259259
pr_debug("%s: Received notification %02x\n", __func__, event);
260260

261261
if (subevent == 0x80) {
262-
pr_debug("%s: generationg bus event\n", __func__);
262+
pr_debug("%s: generating bus event\n", __func__);
263263
acpi_bus_generate_netlink_event(note->device->pnp.device_class,
264264
dev_name(&note->device->dev),
265265
note->event, detail);
@@ -387,7 +387,7 @@ static acpi_status __init ibm_find_acpi_device(acpi_handle handle,
387387
u32 lvl, void *context, void **rv)
388388
{
389389
acpi_handle *phandle = (acpi_handle *)context;
390-
acpi_status status;
390+
acpi_status status;
391391
struct acpi_device_info *info;
392392
int retval = 0;
393393

@@ -405,7 +405,7 @@ static acpi_status __init ibm_find_acpi_device(acpi_handle handle,
405405
info->hardware_id.string, handle);
406406
*phandle = handle;
407407
/* returning non-zero causes the search to stop
408-
* and returns this value to the caller of
408+
* and returns this value to the caller of
409409
* acpi_walk_namespace, but it also causes some warnings
410410
* in the acpi debug code to print...
411411
*/

‎drivers/pci/hotplug/cpci_hotplug_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
do { \
4747
if (cpci_debug) \
4848
printk (KERN_DEBUG "%s: " format "\n", \
49-
MY_NAME , ## arg); \
49+
MY_NAME , ## arg); \
5050
} while (0)
5151
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg)
5252
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)

‎drivers/pci/hotplug/cpci_hotplug_pci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern int cpci_debug;
3939
do { \
4040
if (cpci_debug) \
4141
printk (KERN_DEBUG "%s: " format "\n", \
42-
MY_NAME , ## arg); \
42+
MY_NAME , ## arg); \
4343
} while (0)
4444
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg)
4545
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)

0 commit comments

Comments
 (0)