Skip to content

Commit 4ac5bc3

Browse files
ArvindYadavCsdavem330
authored andcommitted
net: 3c509: 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 e9638c5 commit 4ac5bc3

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
@@ -474,7 +474,7 @@ static int pnp_registered;
474474
#endif /* CONFIG_PNP */
475475

476476
#ifdef CONFIG_EISA
477-
static struct eisa_device_id el3_eisa_ids[] = {
477+
static const struct eisa_device_id el3_eisa_ids[] = {
478478
{ "TCM5090" },
479479
{ "TCM5091" },
480480
{ "TCM5092" },

0 commit comments

Comments
 (0)