summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/shpchp_hpc.c
diff options
context:
space:
mode:
authorJulia Lawall2015-12-23 21:35:35 +0100
committerBjorn Helgaas2016-01-08 19:10:00 +0100
commitbd7900825a3db4c4916fafb400c1f669120039d2 (patch)
treed1a4adea2f4b68e15eeb65c603e77acd1c0c9403 /drivers/pci/hotplug/shpchp_hpc.c
parentPCI: Use kobj_to_dev() instead of open-coding it (diff)
downloadkernel-qcow2-linux-bd7900825a3db4c4916fafb400c1f669120039d2.tar.gz
kernel-qcow2-linux-bd7900825a3db4c4916fafb400c1f669120039d2.tar.xz
kernel-qcow2-linux-bd7900825a3db4c4916fafb400c1f669120039d2.zip
PCI: shpchp: Constify hpc_ops structure
The hpc_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/shpchp_hpc.c')
-rw-r--r--drivers/pci/hotplug/shpchp_hpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp_hpc.c b/drivers/pci/hotplug/shpchp_hpc.c
index e03341c95745..de0ea474fb73 100644
--- a/drivers/pci/hotplug/shpchp_hpc.c
+++ b/drivers/pci/hotplug/shpchp_hpc.c
@@ -910,7 +910,7 @@ static int shpc_get_max_bus_speed(struct controller *ctrl)
return retval;
}
-static struct hpc_ops shpchp_hpc_ops = {
+static const struct hpc_ops shpchp_hpc_ops = {
.power_on_slot = hpc_power_on_slot,
.slot_enable = hpc_slot_enable,
.slot_disable = hpc_slot_disable,