diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 12:23:14 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-19 17:13:41 -0700 |
commit | 33f14384dde8a848d68c9e0224477e29babb233a (patch) | |
tree | 5387ed0a1e95f03a4c8efee3493140112b8ef6ac /drivers/net/ethernet/hp | |
parent | f98dfa4a5f83fdc2eb26d31c25924aeb84739e06 (diff) | |
download | linux-33f14384dde8a848d68c9e0224477e29babb233a.tar.gz linux-33f14384dde8a848d68c9e0224477e29babb233a.tar.bz2 linux-33f14384dde8a848d68c9e0224477e29babb233a.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/hp')
-rw-r--r-- | drivers/net/ethernet/hp/hp100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hp/hp100.c b/drivers/net/ethernet/hp/hp100.c index c6164a98f257..c8c7ad2eff77 100644 --- a/drivers/net/ethernet/hp/hp100.c +++ b/drivers/net/ethernet/hp/hp100.c @@ -194,7 +194,7 @@ static const char *hp100_isa_tbl[] = { }; #endif -static struct eisa_device_id hp100_eisa_tbl[] = { +static const struct eisa_device_id hp100_eisa_tbl[] = { { "HWPF180" }, /* HP J2577 rev A */ { "HWP1920" }, /* HP 27248B */ { "HWP1940" }, /* HP J2577 */ |