Skip to content

Commit 46d9cea

Browse files
ArvindYadavCsdavem330
authored andcommitted
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>
1 parent 33f1438 commit 46d9cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/fddi/defxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3767,7 +3767,7 @@ static void dfx_pci_unregister(struct pci_dev *pdev)
37673767
#endif /* CONFIG_PCI */
37683768

37693769
#ifdef CONFIG_EISA
3770-
static struct eisa_device_id dfx_eisa_table[] = {
3770+
static const struct eisa_device_id dfx_eisa_table[] = {
37713771
{ "DEC3001", DEFEA_PROD_ID_1 },
37723772
{ "DEC3002", DEFEA_PROD_ID_2 },
37733773
{ "DEC3003", DEFEA_PROD_ID_3 },

0 commit comments

Comments
 (0)