]> git.baikalelectronics.ru Git - kernel.git/commit
Input: surface3_spi - make const array header static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Thu, 7 Sep 2017 21:27:12 +0000 (14:27 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 11 Sep 2017 21:23:39 +0000 (14:23 -0700)
commit6ca28e1bfd33b0a02616be69c2a20b7de5aa9de6
treed23c70b96155357393711c6e3b4cdaad72f3414f
parent197e410cb51ec1b9dd14a33204b915eadd1ac05c
Input: surface3_spi - make const array header static, reduces object code size

Don't populate the const array header on the stack, instead make it
static.  Makes the object code smaller by over 180 bytes:

Before:
   text    data     bss     dec     hex filename
   6003    1536       0    7539    1d73 surface3_spi.o

After:
   text    data     bss     dec     hex filename
   5726    1632       0    7358    1cbe surface3_spi.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/surface3_spi.c