Searched hist:"50 bd842b32b4ef57fdf5381b428d1b5605f429ea" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/tty/ |
H A D | moxa.c | diff 50bd842b32b4ef57fdf5381b428d1b5605f429ea Sun Jul 23 05:01:05 CDT 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> tty: moxa: 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 14201 656 1760 16617 40e9 drivers/tty/moxa.o
File size After adding 'const': text data bss dec hex filename 14329 528 1760 16617 40e9 drivers/tty/moxa.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|