]> git.baikalelectronics.ru Git - kernel.git/commit
atm: he: constify pci_device_id.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sun, 16 Jul 2017 09:32:33 +0000 (15:02 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Jul 2017 23:38:02 +0000 (16:38 -0700)
commit3d64c9f059e389954b41315da7f7d6ea8e53c145
tree1c340714c0ba6e63dbd8def69e3cea3f9b8c5cbd
parent04fd960944bff45c4f0dbc1b5f7c84a38296670c
atm: he: 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
  26514     440      48   27002    697a drivers/atm/he.o

File size After adding 'const':
   text    data     bss     dec     hex filename
  26578     376      48   27002    697a drivers/atm/he.o

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