summaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug/pciehp_hpc.c
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2018-09-08 10:59:01 +0300
committerBjorn Helgaas <bhelgaas@google.com>2018-09-19 01:52:15 +0300
commit4ff3126e80fc2db9d961467f783b5c2f4ccd1ca9 (patch)
tree94367091a49c52e7b5849c9724b83617a2b88b75 /drivers/pci/hotplug/pciehp_hpc.c
parent5790a9c78e78aa2c35bb7439bee434301dff004c (diff)
downloadlinux-4ff3126e80fc2db9d961467f783b5c2f4ccd1ca9.tar.xz
PCI: pciehp: Rename controller struct members for clarity
Of the members which were just moved from pciehp's slot struct to the controller struct, rename "lock" to "state_lock" and rename "work" to "button_work" for clarity. Perform the rename separately to the unification of the two structs per Sinan's request. No functional change intended. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Sinan Kaya <okaya@kernel.org>
Diffstat (limited to 'drivers/pci/hotplug/pciehp_hpc.c')
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index fa3759c4ab02..0289a3ae4d90 100644
--- a/drivers/pci/hotplug/pciehp_hpc.c
+++ b/drivers/pci/hotplug/pciehp_hpc.c
@@ -852,11 +852,11 @@ struct controller *pcie_init(struct pcie_device *dev)
ctrl->slot_cap = slot_cap;
mutex_init(&ctrl->ctrl_lock);
- mutex_init(&ctrl->lock);
+ mutex_init(&ctrl->state_lock);
init_rwsem(&ctrl->reset_lock);
init_waitqueue_head(&ctrl->requester);
init_waitqueue_head(&ctrl->queue);
- INIT_DELAYED_WORK(&ctrl->work, pciehp_queue_pushbutton_work);
+ INIT_DELAYED_WORK(&ctrl->button_work, pciehp_queue_pushbutton_work);
dbg_ctrl(ctrl);
down_read(&pci_bus_sem);
@@ -905,7 +905,7 @@ struct controller *pcie_init(struct pcie_device *dev)
void pciehp_release_ctrl(struct controller *ctrl)
{
- cancel_delayed_work_sync(&ctrl->work);
+ cancel_delayed_work_sync(&ctrl->button_work);
kfree(ctrl);
}