diff options
| author | Colin Ian King <colin.king@canonical.com> | 2017-08-31 12:30:44 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-31 21:09:48 -0400 |
| commit | 08d6ac9ee5fedd82040bc878705981b67a116a3f (patch) | |
| tree | aa4edc21678fbc831cb18e8afd870942ed2ba868 | |
| parent | da1a42cd457fb06c2fd141c670b2ca3397234322 (diff) | |
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>
| -rw-r--r-- | drivers/input/mouse/byd.c | 2 |
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) | |||
| 344 | u8 param[4]; | 344 | u8 param[4]; |
| 345 | size_t i; | 345 | size_t i; |
| 346 | 346 | ||
| 347 | const struct { | 347 | static const struct { |
| 348 | u16 command; | 348 | u16 command; |
| 349 | u8 arg; | 349 | u8 arg; |
| 350 | } seq[] = { | 350 | } seq[] = { |
