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 12/29] scsi: hptiop: constify pci_device_id.
Date: Sun, 30 Jul 2017 14:10:28 +0530 [thread overview]
Message-ID: <1501404036-9005-2-git-send-email-arvind.yadav.cs@gmail.com> (raw)
In-Reply-To: <1501404036-9005-1-git-send-email-arvind.yadav.cs@gmail.com>
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/hptiop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/hptiop.c b/drivers/scsi/hptiop.c
index 7226226..31415b8 100644
--- a/drivers/scsi/hptiop.c
+++ b/drivers/scsi/hptiop.c
@@ -1647,7 +1647,7 @@ static struct hptiop_adapter_ops hptiop_mvfrey_ops = {
.host_phy_flag = cpu_to_le64(1),
};
-static struct pci_device_id hptiop_id_table[] = {
+static const struct pci_device_id hptiop_id_table[] = {
{ PCI_VDEVICE(TTI, 0x3220), (kernel_ulong_t)&hptiop_itl_ops },
{ PCI_VDEVICE(TTI, 0x3320), (kernel_ulong_t)&hptiop_itl_ops },
{ PCI_VDEVICE(TTI, 0x3410), (kernel_ulong_t)&hptiop_itl_ops },
--
2.7.4
next prev parent reply other threads:[~2017-07-30 8:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-30 8:40 [PATCH 11/29] scsi: 3w-sas: " Arvind Yadav
2017-07-30 8:40 ` Arvind Yadav [this message]
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
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=1501404036-9005-2-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
Powered by JetHome