summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-07-30 14:10:32 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-24 22:28:52 -0400
commitfe083323bb7ee56b69dacdd2e5d8469be95a8f12 (patch)
treefa4c344452143a5e10d57a6a8f0e7f78b21d55d1
parent582b0ab200105b06704cef6da814fbde4c2ca00b (diff)
downloadtalos-obmc-linux-fe083323bb7ee56b69dacdd2e5d8469be95a8f12.tar.gz
talos-obmc-linux-fe083323bb7ee56b69dacdd2e5d8469be95a8f12.zip
scsi: esas2r: 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> Acked-by: Bradley Grove <bgrove@attotech.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/esas2r/esas2r_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r_main.c b/drivers/scsi/esas2r/esas2r_main.c
index f2e9d8aa979c..81f226be3e3b 100644
--- a/drivers/scsi/esas2r/esas2r_main.c
+++ b/drivers/scsi/esas2r/esas2r_main.c
@@ -309,7 +309,7 @@ MODULE_PARM_DESC(interrupt_mode,
"Defines the interrupt mode to use. 0 for legacy"
", 1 for MSI. Default is MSI (1).");
-static struct pci_device_id
+static const struct pci_device_id
esas2r_pci_table[] = {
{ ATTO_VENDOR_ID, 0x0049, ATTO_VENDOR_ID, 0x0049,
0,
OpenPOWER on IntegriCloud