]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita746de0eecea67bc6e99e7c8e42cdf0a53d0acba
treed66a5d4cf394411f6da3d1eb953eb8ee8f78f250
parent23f196b1ba587c0a02a21de53fad25ea00463d75
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