From: Arvind Yadav <arvind.yadav.cs@gmail.com>
To: martin.petersen@oracle.com, jejb@linux.vnet.ibm.com, mdr@sgi.com,
hare@suse.com, aacraid@adaptec.com, matthew@wil.cx,
fthain@telegraphics.com.au, schmitzmic@gmail.com,
kashyap.desai@broadcom.com, sumit.saxena@broadcom.com,
gotom@debian.or.jp, mrochs@linux.vnet.ibm.com,
QLogic-Storage-Upstream@cavium.com, jinpu.wang@profitbricks.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 21/29] scsi: nsp32: constify pci_device_id.
Date: Sun, 30 Jul 2017 14:13:47 +0530 [thread overview]
Message-ID: <1501404235-9105-1-git-send-email-arvind.yadav.cs@gmail.com> (raw)
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
next reply other threads:[~2017-07-30 8:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-30 8:43 Arvind Yadav [this message]
2017-07-30 8:43 ` [PATCH 22/29] scsi: pmcraid: constify pci_device_id 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1501404235-9105-1-git-send-email-arvind.yadav.cs@gmail.com \
--to=arvind.yadav.cs@gmail.com \
--cc=QLogic-Storage-Upstream@cavium.com \
--cc=aacraid@adaptec.com \
--cc=fthain@telegraphics.com.au \
--cc=gotom@debian.or.jp \
--cc=hare@suse.com \
--cc=jejb@linux.vnet.ibm.com \
--cc=jinpu.wang@profitbricks.com \
--cc=kashyap.desai@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=matthew@wil.cx \
--cc=mdr@sgi.com \
--cc=mrochs@linux.vnet.ibm.com \
--cc=schmitzmic@gmail.com \
--cc=sumit.saxena@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).