diff options
author | Simon Glass <sjg@chromium.org> | 2015-11-29 13:17:48 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-12 10:19:09 -0700 |
commit | f3f1faefcc25c7cce2babe944aa39178b498cd7f (patch) | |
tree | 4874c13241068c8097b62b2d6c968af042f7ba13 /include/pci.h | |
parent | 21ccce1ba52253d776ecd7003e14910eed93160b (diff) | |
download | u-boot-imx-f3f1faefcc25c7cce2babe944aa39178b498cd7f.zip u-boot-imx-f3f1faefcc25c7cce2babe944aa39178b498cd7f.tar.gz u-boot-imx-f3f1faefcc25c7cce2babe944aa39178b498cd7f.tar.bz2 |
dm: pci: Add a dm_ prefix to pci_bus_find_bdf()
Most driver model PCI functions have a dm_ prefix. At some point, when the
old code is converted to driver model and the old functions are removed, we
will drop that prefix.
For consistency, we should use the dm_ prefix for all driver model
functions. Update pci_bus_find_bdf() accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r-- | include/pci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pci.h b/include/pci.h index 5d45cdc..5861976 100644 --- a/include/pci.h +++ b/include/pci.h @@ -902,13 +902,13 @@ int pci_bind_bus_devices(struct udevice *bus); int pci_auto_config_devices(struct udevice *bus); /** - * pci_bus_find_bdf() - Find a device given its PCI bus address + * dm_pci_bus_find_bdf() - Find a device given its PCI bus address * * @bdf: PCI device address: bus, device and function -see PCI_BDF() * @devp: Returns the device for this address, if found * @return 0 if OK, -ENODEV if not found */ -int pci_bus_find_bdf(pci_dev_t bdf, struct udevice **devp); +int dm_pci_bus_find_bdf(pci_dev_t bdf, struct udevice **devp); /** * pci_bus_find_devfn() - Find a device on a bus |