]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: hisax: hisax_fcpcipnp: constify pci_device_id.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 15 Jul 2017 04:25:44 +0000 (09:55 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Jul 2017 04:25:56 +0000 (21:25 -0700)
commit7cae39b0163e485cc50345799a19e757e19f56fc
treef75fdc8aae2b70a7a3902d88018e7428ca310d14
parent7d4a3af50d5e55e077c67b76efdb7f7687dde3b7
isdn: hisax: hisax_fcpcipnp: 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
   5989     576       0    6565    19a5 isdn/hisax/hisax_fcpcipnp.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   6085     480       0    6565    19a5 isdn/hisax/hisax_fcpcipnp.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/hisax_fcpcipnp.c