Input: elantech - make arrays debounce_packet static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Thu, 7 Sep 2017 21:27:26 +0000 (14:27 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 11 Sep 2017 21:23:40 +0000 (14:23 -0700)
commit4f1b461dd1dcb8f9333855cf7fa882fb9f068b16
treefb355bff29d82955d5fa090648767f9f7c0d4994
parent023c437a7a032320cd881b6d1c477a56d95582fe
Input: elantech - make arrays debounce_packet static, reduces object code size

Don't populate the arrays debounce_packet on the stack, instead make
them static.  Makes the object code smaller by over 870 bytes:

Before:
   text    data     bss     dec     hex filename
  30553    9152       0   39705    9b19 drivers/input/mouse/elantech.o

After:
   text    data     bss     dec     hex filename
  29521    9312       0   38833    97b1 drivers/input/mouse/elantech.o

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