]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adi - make array seq static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Mon, 4 Sep 2017 16:17:39 +0000 (09:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 4 Sep 2017 16:28:15 +0000 (09:28 -0700)
commit0e2232a38b7eaab272fe1bf9ef943bf312b4e3c8
tree79e6f18231f92cdbe62e97db2f30c6133fb7c881
parentd0811a3f528e6168385d39a0db3a4b36e5f9f60b
Input: adi - 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 170 bytes:

Before:
   text    data     bss     dec     hex filename
  13227    3232       0   16459    404b drivers/input/joystick/adi.o

After:
   text    data     bss     dec     hex filename
  12957    3328       0   16285    3f9d drivers/input/joystick/adi.o

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