]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
misc: ti-st: make array read_ver_cmd static, shrinks object size
authorColin Ian King <colin.king@canonical.com>
Thu, 29 Nov 2018 23:15:56 +0000 (23:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Dec 2018 14:53:15 +0000 (15:53 +0100)
commit4b4bdfe7d4a02a5c88ec242e3469cb81e00f1f34
tree69fa9b6176c13ec169a6a315dcd1cb0ec19f01c1
parent649ad1165ac17521c062022a0caf8f0eea71f881
misc: ti-st: make array read_ver_cmd static, shrinks object size

Don't populate the const array read_ver_cmd on the stack but instead
make it static. Makes the object code smaller by 42 bytes:

Before:
   text    data     bss     dec     hex filename
  17262    6928     192   24382    5f3e drivers/misc/ti-st/st_kim.o

After:
   text    data     bss     dec     hex filename
  17156    6992     192   24340    5f14 drivers/misc/ti-st/st_kim.o

(gcc version 8.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ti-st/st_kim.c