1
0
Fork 0
remarkable-linux/drivers/tty/serial/jsm
Arvind Yadav 46d01710f6 tty: serial: jsm: 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
   2442	   1088	      8	   3538	    dd2	tty/serial/jsm/jsm_driver.o

File size After adding 'const':
   text	   data	    bss	    dec	    hex	filename
   3082	    448	      8	   3538	    dd2 tty/serial/jsm/jsm_driver.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-30 07:35:28 -07:00
..
Makefile drivers: serial: jsm: Add the Classic board implementation 2014-11-06 15:17:34 -08:00
jsm.h serial: jsm: Fix unnecessary space before function ptr arguments 2014-11-25 17:06:38 -08:00
jsm_cls.c serial: jsm: some off by one bugs 2015-03-26 23:00:36 +01:00
jsm_driver.c tty: serial: jsm: constify pci_device_id. 2017-07-30 07:35:28 -07:00
jsm_neo.c serial/jsm: Deinline neo_parse_isr, save 688 bytes 2015-12-13 19:59:48 -08:00
jsm_tty.c tty: serial: jsm_tty: constify uart_ops structures 2016-09-02 15:01:16 +02:00