diff options
author | Kelsey Skunberg <skunberg.kelsey@gmail.com> | 2019-07-24 17:38:40 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-07-30 08:45:49 -0500 |
commit | 975e1ac173058b8710e5979e97fc1397233301f3 (patch) | |
tree | cd9802ef641e9950c64f6c570b44ec21039f3dce /drivers/pci/pci.h | |
parent | 669696ebbccc40e8096a2ee9809c028fc1538001 (diff) | |
download | linux-975e1ac173058b8710e5979e97fc1397233301f3.tar.gz linux-975e1ac173058b8710e5979e97fc1397233301f3.tar.bz2 linux-975e1ac173058b8710e5979e97fc1397233301f3.zip |
PCI: Make pci_get_host_bridge_device(), pci_put_host_bridge_device() private
These interfaces:
struct device *pci_get_host_bridge_device(struct pci_dev *dev);
void pci_put_host_bridge_device(struct device *dev);
are only used in drivers/pci/ and do not need to be seen by the rest of the
kernel. Move them to drivers/pci/pci.h so they're private to the PCI
subsystem.
Link: https://lore.kernel.org/r/20190724233848.73327-4-skunberg.kelsey@gmail.com
Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index ad1fe54ab8ee..b06c750e08d7 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -243,6 +243,9 @@ enum pci_bar_type { pci_bar_mem64, /* A 64-bit memory BAR */ }; +struct device *pci_get_host_bridge_device(struct pci_dev *dev); +void pci_put_host_bridge_device(struct device *dev); + int pci_configure_extended_tags(struct pci_dev *dev, void *ign); bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl, int crs_timeout); |