Skip to content

Commit d369bca

Browse files
ArvindYadavCsdavem330
authored andcommitted
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 <linux/pnp.h> work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 251564f commit d369bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/3com/3c509.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static struct isa_driver el3_isa_driver = {
392392
static int isa_registered;
393393

394394
#ifdef CONFIG_PNP
395-
static struct pnp_device_id el3_pnp_ids[] = {
395+
static const struct pnp_device_id el3_pnp_ids[] = {
396396
{ .id = "TCM5090" }, /* 3Com Etherlink III (TP) */
397397
{ .id = "TCM5091" }, /* 3Com Etherlink III */
398398
{ .id = "TCM5094" }, /* 3Com Etherlink III (combo) */

0 commit comments

Comments
 (0)