OSDN Git Service

atm: iphase: constify pci_device_id.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sun, 16 Jul 2017 09:32:29 +0000 (15:02 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Jul 2017 23:38:02 +0000 (16:38 -0700)
commit10244bc2ae7d8543190f4c651cdfaf030c50a802
treed66a5d4cf394411f6da3d1eb953eb8ee8f78f250
parentccdb2d17df9f07c291d43b0aeea7c90e4c020489
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>
drivers/atm/iphase.c