mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 21/29] scsi: nsp32: constify pci_device_id.
@ 2017-07-30  8:43 Arvind Yadav
  2017-07-30  8:43 ` [PATCH 22/29] scsi: pmcraid: " Arvind Yadav
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Arvind Yadav @ 2017-07-30  8:43 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/nsp32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
index 53c8477..1430b3c 100644
--- a/drivers/scsi/nsp32.c
+++ b/drivers/scsi/nsp32.c
@@ -76,7 +76,7 @@ static const char *nsp32_release_version = "1.2";
 /****************************************************************************
  * Supported hardware
  */
-static struct pci_device_id nsp32_pci_table[] = {
+static const struct pci_device_id nsp32_pci_table[] = {
 	{
 		.vendor      = PCI_VENDOR_ID_IODATA,
 		.device      = PCI_DEVICE_ID_NINJASCSI_32BI_CBSC_II,
-- 
2.7.4

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

end of thread, other threads:[~2017-08-07  1:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-30  8:43 [PATCH 21/29] scsi: nsp32: constify pci_device_id Arvind Yadav
2017-07-30  8:43 ` [PATCH 22/29] scsi: pmcraid: " Arvind Yadav
2017-07-30  8:43 ` [PATCH 23/29] scsi: fnic: " Arvind Yadav
2017-07-30  8:43 ` [PATCH 24/29] scsi: stex: " Arvind Yadav
2017-07-30  8:43 ` [PATCH 25/29] scsi: megaraid: " Arvind Yadav
2017-07-30  8:43 ` [PATCH 26/29] scsi: a100u2w: " Arvind Yadav
2017-07-30  8:43 ` [PATCH 27/29] scsi: advansys: " Arvind Yadav
2017-07-30  8:43 ` [PATCH 28/29] scsi: atp870u: " Arvind Yadav
2017-07-30  8:43 ` [PATCH 29/29] scsi: 3w-xxxx: " Arvind Yadav
2017-08-07  1:37 ` [PATCH 21/29] scsi: nsp32: " Masanori Goto

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

all inboxes | Powered by JetHome®