mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dm: pci: Add a dm_ prefix to pci_get_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_get_bdf() accordingly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -862,12 +862,12 @@ struct dm_pci_ops {
|
||||
#define pci_get_ops(dev) ((struct dm_pci_ops *)(dev)->driver->ops)
|
||||
|
||||
/**
|
||||
* pci_get_bdf() - Get the BDF value for a device
|
||||
* dm_pci_get_bdf() - Get the BDF value for a device
|
||||
*
|
||||
* @dev: Device to check
|
||||
* @return bus/device/function value (see PCI_BDF())
|
||||
*/
|
||||
pci_dev_t pci_get_bdf(struct udevice *dev);
|
||||
pci_dev_t dm_pci_get_bdf(struct udevice *dev);
|
||||
|
||||
/**
|
||||
* pci_bind_bus_devices() - scan a PCI bus and bind devices
|
||||
|
Reference in New Issue
Block a user