Skip to content

Commit 08d6ac9

Browse files
Colin Ian Kingdtor
authored andcommitted
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 <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent da1a42c commit 08d6ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/mouse/byd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static int byd_reset_touchpad(struct psmouse *psmouse)
344344
u8 param[4];
345345
size_t i;
346346

347-
const struct {
347+
static const struct {
348348
u16 command;
349349
u8 arg;
350350
} seq[] = {

0 commit comments

Comments
 (0)