Skip to content

Commit 33f1438

Browse files
ArvindYadavCsdavem330
authored andcommitted
net: hp100: 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 f98dfa4 commit 33f1438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hp/hp100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static const char *hp100_isa_tbl[] = {
194194
};
195195
#endif
196196

197-
static struct eisa_device_id hp100_eisa_tbl[] = {
197+
static const struct eisa_device_id hp100_eisa_tbl[] = {
198198
{ "HWPF180" }, /* HP J2577 rev A */
199199
{ "HWP1920" }, /* HP 27248B */
200200
{ "HWP1940" }, /* HP J2577 */

0 commit comments

Comments
 (0)