diff options
author | Kelsey Skunberg <skunberg.kelsey@gmail.com> | 2019-07-25 01:38:47 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-07-30 15:45:55 +0200 |
commit | ac6c26da29c12fa511c877c273ed5c939dc9e96c (patch) | |
tree | bf3a0b3fb3bb3630a744334a16939fc9e7cdd5e0 /drivers/pci/pci.h | |
parent | PCI: Make pcie_set_ecrc_checking(), pcie_ecrc_get_policy() private (diff) | |
download | linux-ac6c26da29c12fa511c877c273ed5c939dc9e96c.tar.xz linux-ac6c26da29c12fa511c877c273ed5c939dc9e96c.zip |
PCI: Make pci_enable_ptm() private
This interface:
int pci_enable_ptm(struct pci_dev *dev, u8 *granularity);
is only used in drivers/pci/ and does not need to be seen by the rest of
the kernel. Move it to drivers/pci/pci.h so it's private to the PCI
subsystem.
Link: https://lore.kernel.org/r/20190724233848.73327-11-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 d3d006c95041..8935fc1ff446 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -551,8 +551,11 @@ static inline void pcie_ecrc_get_policy(char *str) { } #ifdef CONFIG_PCIE_PTM void pci_ptm_init(struct pci_dev *dev); +int pci_enable_ptm(struct pci_dev *dev, u8 *granularity); #else static inline void pci_ptm_init(struct pci_dev *dev) { } +static inline int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) +{ return -EINVAL; } #endif struct pci_dev_reset_methods { |