diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-23 13:01:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-30 17:35:28 +0300 |
commit | 46d01710f621ee8efaa1fc12f54d49124bb477bd (patch) | |
tree | 2d642381f9a97ccef178bc24fe471cdf19664302 /drivers/tty/ehv_bytechan.c | |
parent | 0846b762c42d9654290f19a3b2e6248d6aca2b0a (diff) | |
download | linux-46d01710f621ee8efaa1fc12f54d49124bb477bd.tar.xz |
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>
Diffstat (limited to 'drivers/tty/ehv_bytechan.c')
0 files changed, 0 insertions, 0 deletions