Commit 60747936 authored by Arvind Yadav's avatar Arvind Yadav Committed by Martin K. Petersen

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent b7fa2cbd
...@@ -736,7 +736,7 @@ static struct isa_driver generic_NCR5380_isa_driver = { ...@@ -736,7 +736,7 @@ static struct isa_driver generic_NCR5380_isa_driver = {
}; };
#ifdef CONFIG_PNP #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 = "DTC436e", .driver_data = BOARD_DTC3181E },
{ .id = "" } { .id = "" }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment