diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-16 15:02:29 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-16 16:38:02 -0700 |
commit | 10244bc2ae7d8543190f4c651cdfaf030c50a802 (patch) | |
tree | d66a5d4cf394411f6da3d1eb953eb8ee8f78f250 /drivers/atm | |
parent | ccdb2d17df9f07c291d43b0aeea7c90e4c020489 (diff) | |
download | linux-10244bc2ae7d8543190f4c651cdfaf030c50a802.tar.gz linux-10244bc2ae7d8543190f4c651cdfaf030c50a802.tar.bz2 linux-10244bc2ae7d8543190f4c651cdfaf030c50a802.zip |
atm: iphase: constify pci_device_id.
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by <linux/pci.h> work with
const pci_device_id. So mark the non-const structs as const.
File size before:
text data bss dec hex filename
23536 432 160 24128 5e40 drivers/atm/iphase.o
File size After adding 'const':
text data bss dec hex filename
23632 336 160 24128 5e40 drivers/atm/iphase.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/iphase.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c index a4fa6c82261e..fc72b763fdd7 100644 --- a/drivers/atm/iphase.c +++ b/drivers/atm/iphase.c @@ -3266,7 +3266,7 @@ static void ia_remove_one(struct pci_dev *pdev) kfree(iadev); } -static struct pci_device_id ia_pci_tbl[] = { +static const struct pci_device_id ia_pci_tbl[] = { { PCI_VENDOR_ID_IPHASE, 0x0008, PCI_ANY_ID, PCI_ANY_ID, }, { PCI_VENDOR_ID_IPHASE, 0x0009, PCI_ANY_ID, PCI_ANY_ID, }, { 0,} |