aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-02-04 15:02:45 -0500
committerBjorn Helgaas <bhelgaas@google.com>2016-02-04 15:02:45 -0500
commit3b0a6d1a1b3335fde9cbbc659568ed619b07d24a (patch)
treeadc5543a783bf5cb3b1b2c395399ad08780bd5bf /drivers/pci/pcie
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
PCI/AER: Rename pci_ops_aer to aer_inj_pci_ops
Rename pci_ops_aer to aer_inj_pci_ops pci_read_aer() to aer_inj_read_config() pci_write_aer() to aer_inj_write_config() This is more conventional and more informative. No functional change. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r--drivers/pci/pcie/aer/aer_inject.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c
index 20db790465dd..148a301a6b3c 100644
--- a/drivers/pci/pcie/aer/aer_inject.c
+++ b/drivers/pci/pcie/aer/aer_inject.c
@@ -181,8 +181,8 @@ static u32 *find_pci_config_dword(struct aer_error *err, int where,
181 return target; 181 return target;
182} 182}
183 183
184static int pci_read_aer(struct pci_bus *bus, unsigned int devfn, int where, 184static int aer_inj_read_config(struct pci_bus *bus, unsigned int devfn,
185 int size, u32 *val) 185 int where, int size, u32 *val)
186{ 186{
187 u32 *sim; 187 u32 *sim;
188 struct aer_error *err; 188 struct aer_error *err;
@@ -212,8 +212,8 @@ out:
212 return ops->read(bus, devfn, where, size, val); 212 return ops->read(bus, devfn, where, size, val);
213} 213}
214 214
215static int pci_write_aer(struct pci_bus *bus, unsigned int devfn, int where, 215static int aer_inj_write_config(struct pci_bus *bus, unsigned int devfn,
216 int size, u32 val) 216 int where, int size, u32 val)
217{ 217{
218 u32 *sim; 218 u32 *sim;
219 struct aer_error *err; 219 struct aer_error *err;
@@ -247,9 +247,9 @@ out:
247 return ops->write(bus, devfn, where, size, val); 247 return ops->write(bus, devfn, where, size, val);
248} 248}
249 249
250static struct pci_ops pci_ops_aer = { 250static struct pci_ops aer_inj_pci_ops = {
251 .read = pci_read_aer, 251 .read = aer_inj_read_config,
252 .write = pci_write_aer, 252 .write = aer_inj_write_config,
253}; 253};
254 254
255static void pci_bus_ops_init(struct pci_bus_ops *bus_ops, 255static void pci_bus_ops_init(struct pci_bus_ops *bus_ops,
@@ -270,9 +270,9 @@ static int pci_bus_set_aer_ops(struct pci_bus *bus)
270 bus_ops = kmalloc(sizeof(*bus_ops), GFP_KERNEL); 270 bus_ops = kmalloc(sizeof(*bus_ops), GFP_KERNEL);
271 if (!bus_ops) 271 if (!bus_ops)
272 return -ENOMEM; 272 return -ENOMEM;
273 ops = pci_bus_set_ops(bus, &pci_ops_aer); 273 ops = pci_bus_set_ops(bus, &aer_inj_pci_ops);
274 spin_lock_irqsave(&inject_lock, flags); 274 spin_lock_irqsave(&inject_lock, flags);
275 if (ops == &pci_ops_aer) 275 if (ops == &aer_inj_pci_ops)
276 goto out; 276 goto out;
277 pci_bus_ops_init(bus_ops, bus, ops); 277 pci_bus_ops_init(bus_ops, bus, ops);
278 list_add(&bus_ops->list, &pci_bus_ops_list); 278 list_add(&bus_ops->list, &pci_bus_ops_list);