]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: pci: Add an inline API to test if a device is on a PCI bus
authorBin Meng <bmeng.cn@gmail.com>
Fri, 11 Sep 2015 10:24:34 +0000 (03:24 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 17 Sep 2015 01:53:52 +0000 (19:53 -0600)
commit1e0f226362ffd2bd8c1a238af1d1b21ea86d3111
tree105e275db286d90bcf54a593536bf3012823f9c6
parentfa43ce842c3026c2abf19d4234d02cd4c62eeec0
dm: pci: Add an inline API to test if a device is on a PCI bus

Introduce device_is_on_pci_bus() which can be utilized by driver
to test if a device is on a PCI bus.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c
include/dm/device.h