]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PCI: pciehp: Drop hotplug_slot_ops wrappers
authorLukas Wunner <lukas@wunner.de>
Sun, 19 Aug 2018 14:29:00 +0000 (16:29 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Sep 2018 21:34:36 +0000 (16:34 -0500)
commiteee6e273843dc3084c15efc98a78702ac9a4c69b
treed47be1a16667fd37e921330090d3e16470aa7d0d
parent7d4ba52317c4aab6bbb266f31e28713d397e570c
PCI: pciehp: Drop hotplug_slot_ops wrappers

pciehp's ->enable_slot, ->disable_slot, ->get_attention_status and
->reset_slot callbacks are currently implemented by wrapper functions
that do nothing else but call down to a backend function.  The backends
are not called from anywhere else, so drop the wrappers and use the
backends directly as callbacks, thereby shaving off a few lines of
unnecessary code.

No functional change intended.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_core.c
drivers/pci/hotplug/pciehp_ctrl.c
drivers/pci/hotplug/pciehp_hpc.c