From: Arvind Yadav Date: Wed, 16 Aug 2017 04:55:59 +0000 (+0530) Subject: net: 3c509: constify pnp_device_id X-Git-Tag: v4.14-rc1~130^2~235 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d369bcaf7dcbe1a5d09ed2e519f35e4841303003;p=platform%2Fkernel%2Flinux-rpi3.git net: 3c509: 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/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c index f66c971..077d01d 100644 --- a/drivers/net/ethernet/3com/3c509.c +++ b/drivers/net/ethernet/3com/3c509.c @@ -392,7 +392,7 @@ static struct isa_driver el3_isa_driver = { static int isa_registered; #ifdef CONFIG_PNP -static struct pnp_device_id el3_pnp_ids[] = { +static const struct pnp_device_id el3_pnp_ids[] = { { .id = "TCM5090" }, /* 3Com Etherlink III (TP) */ { .id = "TCM5091" }, /* 3Com Etherlink III */ { .id = "TCM5094" }, /* 3Com Etherlink III (combo) */