PCI/ASPM: Remove struct aspm_register_info.l1ss_cap_ptr
authorSaheed O. Bolarinwa <refactormyself@gmail.com>
Thu, 15 Oct 2020 19:30:34 +0000 (14:30 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Oct 2020 16:21:04 +0000 (11:21 -0500)
commitecdf57b4f6748f3cb89eaf2ffdc9cfae4829f493
tree46009f045e54e64c8056247755121ea24ceab100
parent5f7875d651c22770c7382f9b1a9de228bc69237a
PCI/ASPM: Remove struct aspm_register_info.l1ss_cap_ptr

Save the L1 Substates Capability pointer in struct pci_dev.  Then we don't
have to keep track of it in the struct aspm_register_info and struct
pcie_link_state, which makes the code easier to read.  No functional change
intended.

[bhelgaas: split to a separate patch]
Link: https://lore.kernel.org/r/20201015193039.12585-8-helgaas@kernel.org
Signed-off-by: Saheed O. Bolarinwa <refactormyself@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c
drivers/pci/probe.c
include/linux/pci.h