Skip to content

Commit f98dfa4

Browse files
ArvindYadavCsdavem330
authored andcommitted
net: de4x5: constify eisa_device_id
eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by <linux/eisa.h> work with const eisa_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 670af5e commit f98dfa4

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/dec/tulip

1 file changed

+1
-1
lines changed

drivers/net/ethernet/dec/tulip/de4x5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,7 @@ static int de4x5_eisa_remove(struct device *device)
20942094
return 0;
20952095
}
20962096

2097-
static struct eisa_device_id de4x5_eisa_ids[] = {
2097+
static const struct eisa_device_id de4x5_eisa_ids[] = {
20982098
{ "DEC4250", 0 }, /* 0 is the board name index... */
20992099
{ "" }
21002100
};

0 commit comments

Comments
 (0)