]> git.baikalelectronics.ru Git - kernel.git/commit
Input: sidewinder - make array seq static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Sep 2019 19:01:30 +0000 (12:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Sep 2019 00:56:33 +0000 (17:56 -0700)
commit265b036f8e0b6d88d99e2140786ad0d208de2635
tree48052747f284bd78de46b108b77280a2b58bbd9c
parent5d46cbfbc4d7289b9b8e0192e330ebc4f6cdc464
Input: sidewinder - make array seq static const, makes object smaller

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

Before:
   text    data     bss     dec     hex filename
  22284    3184       0   25468    637c drivers/input/joystick/sidewinder.o

After:
   text    data     bss     dec     hex filename
  22158    3280       0   25438    635e drivers/input/joystick/sidewinder.o

(gcc version 9.2.1, amd64)

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