Skip to content

Commit 670af5e

Browse files
ArvindYadavCsdavem330
authored andcommitted
net: 3c59x: 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 4ac5bc3 commit 670af5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static const struct dev_pm_ops vortex_pm_ops = {
900900
#endif /* !CONFIG_PM */
901901

902902
#ifdef CONFIG_EISA
903-
static struct eisa_device_id vortex_eisa_ids[] = {
903+
static const struct eisa_device_id vortex_eisa_ids[] = {
904904
{ "TCM5920", CH_3C592 },
905905
{ "TCM5970", CH_3C597 },
906906
{ "" }

0 commit comments

Comments
 (0)