summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-08-31 19:30:44 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-09-01 04:09:48 +0300
commit08d6ac9ee5fedd82040bc878705981b67a116a3f (patch)
treeaa4edc21678fbc831cb18e8afd870942ed2ba868 /drivers/input
parentda1a42cd457fb06c2fd141c670b2ca3397234322 (diff)
downloadlinux-08d6ac9ee5fedd82040bc878705981b67a116a3f.tar.xz
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>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/mouse/byd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/byd.c b/drivers/input/mouse/byd.c
index b27aa637f877..b64b81599f7e 100644
--- a/drivers/input/mouse/byd.c
+++ b/drivers/input/mouse/byd.c
@@ -344,7 +344,7 @@ static int byd_reset_touchpad(struct psmouse *psmouse)
u8 param[4];
size_t i;
- const struct {
+ static const struct {
u16 command;
u8 arg;
} seq[] = {