summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-12-06 17:33:45 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-12-09 01:34:32 +0100
commit299f2ffed329c1a2ea8d6e90f0df26b885d16e08 (patch)
tree3a4bc66b9dfbf849cedc6ccc9b0f00e21095c09a /drivers/pci/pci.h
parent527e9316f8ec44bd53d90fb9f611fa7ffff52bb9 (diff)
downloadop-kernel-dev-299f2ffed329c1a2ea8d6e90f0df26b885d16e08.zip
op-kernel-dev-299f2ffed329c1a2ea8d6e90f0df26b885d16e08.tar.gz
PCI / PM: constify pci_platform_pm_ops structure
The pci_platform_pm_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> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index d390fc1..f6f151a 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -68,7 +68,7 @@ struct pci_platform_pm_ops {
bool (*need_resume)(struct pci_dev *dev);
};
-int pci_set_platform_pm(struct pci_platform_pm_ops *ops);
+int pci_set_platform_pm(const struct pci_platform_pm_ops *ops);
void pci_update_current_state(struct pci_dev *dev, pci_power_t state);
void pci_power_up(struct pci_dev *dev);
void pci_disable_enabled_device(struct pci_dev *dev);
OpenPOWER on IntegriCloud