From: Arvind Yadav Date: Sun, 16 Jul 2017 09:32:29 +0000 (+0530) Subject: atm: iphase: constify pci_device_id. X-Git-Tag: v4.14-rc1~130^2~507^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10244bc2ae7d8543190f4c651cdfaf030c50a802;p=platform%2Fkernel%2Flinux-exynos.git 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 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 Signed-off-by: David S. Miller --- diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c index a4fa6c8..fc72b763 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,}