From: Colin Ian King Date: Thu, 31 Aug 2017 16:30:44 +0000 (-0700) Subject: Input: byd - make array seq static, reduces object code size X-Git-Tag: v4.14-rc1~4^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08d6ac9ee5fedd82040bc878705981b67a116a3f;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/mouse/byd.c b/drivers/input/mouse/byd.c index b27aa63..b64b815 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[] = {