PCI: Make saved capability state private to core
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 2 Aug 2021 22:17:28 +0000 (17:17 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Aug 2021 21:28:10 +0000 (16:28 -0500)
commitf0ab00174eb7574732737fc0734d4b406aed6231
tree0f70e1396d17ecdc8f127683ec5122ee5c628f56
parenta153e5e117ff562546ad3914045f2b5e1c302f88
PCI: Make saved capability state private to core

Interfaces and structs for saving and restoring PCI Capability state were
declared in include/linux/pci.h, but aren't needed outside drivers/pci/.

Move these to drivers/pci/pci.h:

  struct pci_cap_saved_data
  struct pci_cap_saved_state
  void pci_allocate_cap_save_buffers()
  void pci_free_cap_save_buffers()
  int pci_add_cap_save_buffer()
  int pci_add_ext_cap_save_buffer()
  struct pci_cap_saved_state *pci_find_saved_cap()
  struct pci_cap_saved_state *pci_find_saved_ext_cap()

Link: https://lore.kernel.org/r/20210802221728.1469304-1-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
drivers/pci/pci.h
include/linux/pci.h