summaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2018-09-18 21:46:17 +0200
committerBjorn Helgaas <bhelgaas@google.com>2018-09-18 17:52:15 -0500
commit5790a9c78e78aa2c35bb7439bee434301dff004c (patch)
tree6083e23cd0ea5bb04c41173d2dd3b854f415136f /drivers/parport
parent80696f991424d05a784c0cf9c314ac09ac280406 (diff)
downloadlinux-5790a9c78e78aa2c35bb7439bee434301dff004c.tar.gz
linux-5790a9c78e78aa2c35bb7439bee434301dff004c.tar.bz2
linux-5790a9c78e78aa2c35bb7439bee434301dff004c.zip
PCI: pciehp: Unify controller and slot structs
pciehp was originally introduced together with shpchp in a single commit, c16b4b14d980 ("PCI Hotplug: Add SHPC and PCI Express hot-plug drivers"): https://git.kernel.org/tglx/history/c/c16b4b14d980 shpchp supports up to 31 slots per controller, hence uses separate slot and controller structs. pciehp has a 1:1 relationship between slot and controller and therefore never required this separation. Nevertheless, because much of the code had been copy-pasted between the two drivers, pciehp likewise uses separate structs to this very day. The artificial separation of data structures adds unnecessary complexity and bloat to pciehp and requires constantly chasing pointers at runtime. Simplify the driver by merging struct slot into struct controller. Merge the slot constructor pcie_init_slot() and the destructor pcie_cleanup_slot() into the controller counterparts. No functional change intended. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/parport')
0 files changed, 0 insertions, 0 deletions