aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-07-30 10:56:35 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 16:55:48 +0200
commit8efa6fb50696cecacb22af2410f2db34fb37b9c3 (patch)
tree1ed0916d459e831f6e273ad861ecbb2e5d17c8f6 /drivers/misc
parentmisc: tifm: constify pci_device_id. (diff)
downloadlinux-dev-8efa6fb50696cecacb22af2410f2db34fb37b9c3.tar.xz
linux-dev-8efa6fb50696cecacb22af2410f2db34fb37b9c3.zip
misc: hpilo: constify pci_device_id.
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by <linux/pci.h> work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/hpilo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c
index fea8ff40440f..097e3092c158 100644
--- a/drivers/misc/hpilo.c
+++ b/drivers/misc/hpilo.c
@@ -857,7 +857,7 @@ out:
return error;
}
-static struct pci_device_id ilo_devices[] = {
+static const struct pci_device_id ilo_devices[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_COMPAQ, 0xB204) },
{ PCI_DEVICE(PCI_VENDOR_ID_HP, 0x3307) },
{ }