From: Arvind Yadav Date: Wed, 16 Aug 2017 04:54:32 +0000 (+0530) Subject: PNP: ide: constify pnp_device_id X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b671e1703394d77163130c91f53b075db1c446bf;p=openwrt%2Fstaging%2Fblogic.git PNP: ide: 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 Signed-off-by: David S. Miller --- diff --git a/drivers/ide/ide-pnp.c b/drivers/ide/ide-pnp.c index f5f2b62471da..859ddab9448f 100644 --- a/drivers/ide/ide-pnp.c +++ b/drivers/ide/ide-pnp.c @@ -22,7 +22,7 @@ #define DRV_NAME "ide-pnp" /* Add your devices here :)) */ -static struct pnp_device_id idepnp_devices[] = { +static const struct pnp_device_id idepnp_devices[] = { /* Generic ESDI/IDE/ATA compatible hard disk controller */ {.id = "PNP0600", .driver_data = 0}, {.id = ""}