From: Arvind Yadav Date: Wed, 16 Aug 2017 04:58:40 +0000 (+0530) Subject: scsi: ncr5380: constify pnp_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60747936bd5c0f7de2179f7076fe89ad93675680;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Acked-by: Finn Thain Signed-off-by: Martin K. Petersen --- 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 = "" } };