summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-16 06:59:24 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-25 04:29:07 +0200
commit78453a31d5136cfd8722c111935f6800fa0db0b4 (patch)
tree45ea703c68a40ca2763ec03bd5eeb6dd3febe651
parentscsi: scsi-sysfs: Adjust error returned for adapter reset request (diff)
downloadlinux-78453a31d5136cfd8722c111935f6800fa0db0b4.tar.xz
linux-78453a31d5136cfd8722c111935f6800fa0db0b4.zip
scsi: aha1542: constify pnp_device_id
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by <linux/pnp.h> work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/aha1542.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c
index a23cc9ac5acd..124217927c4a 100644
--- a/drivers/scsi/aha1542.c
+++ b/drivers/scsi/aha1542.c
@@ -986,7 +986,7 @@ static struct isa_driver aha1542_isa_driver = {
static int isa_registered;
#ifdef CONFIG_PNP
-static struct pnp_device_id aha1542_pnp_ids[] = {
+static const struct pnp_device_id aha1542_pnp_ids[] = {
{ .id = "ADP1542" },
{ .id = "" }
};