aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-07-30 01:26:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 10:55:48 -0400
commit8efa6fb50696cecacb22af2410f2db34fb37b9c3 (patch)
tree1ed0916d459e831f6e273ad861ecbb2e5d17c8f6
parent404147ba158af1c8b14739972fa5de7558e5458c (diff)
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>
-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:
857 return error; 857 return error;
858} 858}
859 859
860static struct pci_device_id ilo_devices[] = { 860static const struct pci_device_id ilo_devices[] = {
861 { PCI_DEVICE(PCI_VENDOR_ID_COMPAQ, 0xB204) }, 861 { PCI_DEVICE(PCI_VENDOR_ID_COMPAQ, 0xB204) },
862 { PCI_DEVICE(PCI_VENDOR_ID_HP, 0x3307) }, 862 { PCI_DEVICE(PCI_VENDOR_ID_HP, 0x3307) },
863 { } 863 { }