summaryrefslogtreecommitdiff
path: root/drivers/scsi/g_NCR5380.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-16 07:58:40 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-25 05:29:05 +0300
commit60747936bd5c0f7de2179f7076fe89ad93675680 (patch)
tree3d50c3d4789b31701295172a398d333f64ab059b /drivers/scsi/g_NCR5380.c
parentb7fa2cbda560655df58c418880013a1ed9e01e17 (diff)
downloadlinux-60747936bd5c0f7de2179f7076fe89ad93675680.tar.xz
scsi: ncr5380: 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> Acked-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/g_NCR5380.c')
-rw-r--r--drivers/scsi/g_NCR5380.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c
index b4da4811b7a1..edf990b64714 100644
--- a/drivers/scsi/g_NCR5380.c
+++ b/drivers/scsi/g_NCR5380.c
@@ -736,7 +736,7 @@ static struct isa_driver generic_NCR5380_isa_driver = {
};
#ifdef CONFIG_PNP
-static struct pnp_device_id generic_NCR5380_pnp_ids[] = {
+static const struct pnp_device_id generic_NCR5380_pnp_ids[] = {
{ .id = "DTC436e", .driver_data = BOARD_DTC3181E },
{ .id = "" }
};