PCI/ASPM: Add pcie_aspm_get_link()
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 5 Oct 2019 12:07:18 +0000 (14:07 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 15 Oct 2019 20:22:59 +0000 (15:22 -0500)
commit687aaf386aeb551130f31705ce40d1341047a936
tree290bbd16dbda038db405d7b03a74bde35e316c8b
parent35efea32b26f9aacc99bf07e0d2cdfba2028b099
PCI/ASPM: Add pcie_aspm_get_link()

Factor out getting the link associated with a pci_dev and use this helper
where appropriate.  In addition this helper will be used in a subsequent
patch of this series.

Link: https://lore.kernel.org/r/19d33770-29de-a9af-4d85-f2b30269d383@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c