mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 11/29] scsi: 3w-sas: constify pci_device_id.
@ 2017-07-30  8:40 Arvind Yadav
  2017-07-30  8:40 ` [PATCH 12/29] scsi: hptiop: " Arvind Yadav
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Arvind Yadav @ 2017-07-30  8:40 UTC (permalink / raw)
  To: martin.petersen, jejb, mdr, hare, aacraid, matthew, fthain,
	schmitzmic, kashyap.desai, sumit.saxena, gotom, mrochs,
	QLogic-Storage-Upstream, jinpu.wang
  Cc: linux-scsi, linux-kernel

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>
---
 drivers/scsi/3w-sas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c
index b150e13..e771e86 100644
--- a/drivers/scsi/3w-sas.c
+++ b/drivers/scsi/3w-sas.c
@@ -1847,7 +1847,7 @@ static int twl_resume(struct pci_dev *pdev)
 #endif
 
 /* PCI Devices supported by this driver */
-static struct pci_device_id twl_pci_tbl[] = {
+static const struct pci_device_id twl_pci_tbl[] = {
 	{ PCI_VDEVICE(3WARE, PCI_DEVICE_ID_3WARE_9750) },
 	{ }
 };
-- 
2.7.4

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-08-10 19:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-30  8:40 [PATCH 11/29] scsi: 3w-sas: constify pci_device_id Arvind Yadav
2017-07-30  8:40 ` [PATCH 12/29] scsi: hptiop: " Arvind Yadav
2017-07-30  8:40 ` [PATCH 13/29] scsi: fdomain: " Arvind Yadav
2017-07-30  8:40 ` [PATCH 14/29] scsi: snic: " Arvind Yadav
2017-07-30  8:40 ` [PATCH 15/29] scsi: sym53c8xx_2: " Arvind Yadav
2017-07-30  8:40 ` [PATCH 16/29] scsi: esas2r: " Arvind Yadav
2017-08-10 18:59   ` Bradley Grove
2017-07-30  8:40 ` [PATCH 17/29] scsi: qla2xxx: " Arvind Yadav
2017-07-30  8:40 ` [PATCH 18/29] scsi: dmx3191d: " Arvind Yadav
2017-07-30  8:40 ` [PATCH 19/29] scsi: megaraid: " Arvind Yadav
2017-07-30  8:40 ` [PATCH 20/29] scsi: cxlflash: " Arvind Yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome