diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 09:53:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-20 03:13:41 +0300 |
commit | 46d9ceaad0b092ea17c90a7ce2608eba57e9adc3 (patch) | |
tree | a72d4f3b5a9cd60f41c2da9930c3f49db1f81a08 /drivers/net/fddi | |
parent | 33f14384dde8a848d68c9e0224477e29babb233a (diff) | |
download | linux-46d9ceaad0b092ea17c90a7ce2608eba57e9adc3.tar.xz |
net: defxx: 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>
Reviewed-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fddi')
-rw-r--r-- | drivers/net/fddi/defxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fddi/defxx.c b/drivers/net/fddi/defxx.c index f4a816cf012a..61fceee73c1b 100644 --- a/drivers/net/fddi/defxx.c +++ b/drivers/net/fddi/defxx.c @@ -3767,7 +3767,7 @@ static void dfx_pci_unregister(struct pci_dev *pdev) #endif /* CONFIG_PCI */ #ifdef CONFIG_EISA -static struct eisa_device_id dfx_eisa_table[] = { +static const struct eisa_device_id dfx_eisa_table[] = { { "DEC3001", DEFEA_PROD_ID_1 }, { "DEC3002", DEFEA_PROD_ID_2 }, { "DEC3003", DEFEA_PROD_ID_3 }, |