summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hp
diff options
context:
space:
mode:
authorArvind Yadav2017-08-19 08:53:14 +0200
committerDavid S. Miller2017-08-20 02:13:41 +0200
commit33f14384dde8a848d68c9e0224477e29babb233a (patch)
tree5387ed0a1e95f03a4c8efee3493140112b8ef6ac /drivers/net/ethernet/hp
parentnet: de4x5: constify eisa_device_id (diff)
downloadkernel-qcow2-linux-33f14384dde8a848d68c9e0224477e29babb233a.tar.gz
kernel-qcow2-linux-33f14384dde8a848d68c9e0224477e29babb233a.tar.xz
kernel-qcow2-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.c2
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 */