]> git.baikalelectronics.ru Git - kernel.git/commit
Input: byd - make array seq static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Thu, 31 Aug 2017 16:30:44 +0000 (09:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 1 Sep 2017 01:09:48 +0000 (18:09 -0700)
commitd0811a3f528e6168385d39a0db3a4b36e5f9f60b
treeaa4edc21678fbc831cb18e8afd870942ed2ba868
parent43e339e4c4c5f2eee42b8273e76e132380ade384
Input: byd - make array seq static, reduces object code size

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

Before:
   text    data     bss     dec     hex filename
   6152    1216      64    7432    1d08 drivers/input/mouse/byd.o

After:
   text    data     bss     dec     hex filename
   4974    1280      64    6318    18ae drivers/input/mouse/byd.o

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