diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-02-04 17:27:48 +0000 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-02-05 10:13:28 +0100 |
commit | 4d30083301488199a9cef4ffa6ff15149474ebca (patch) | |
tree | 958c193ccc8a64cd3c30a44200695653512c6757 /drivers/hid/intel-ish-hid/ipc/ipc.c | |
parent | e037acf0b1aed31cb5f3b09ccb602b4768c133d5 (diff) | |
download | lwn-4d30083301488199a9cef4ffa6ff15149474ebca.tar.gz lwn-4d30083301488199a9cef4ffa6ff15149474ebca.zip |
HID: lg-g15: make a const array static, makes object smaller
Don't populate the const array led_names on the stack but instead make
it static. Makes the object code smaller by 79 bytes:
Before:
text data bss dec hex filename
19686 7952 256 27894 6cf6 drivers/hid/hid-lg-g15.o
After:
text data bss dec hex filename
19543 8016 256 27815 6ca7 drivers/hid/hid-lg-g15.o
(gcc version 10.2.0)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/intel-ish-hid/ipc/ipc.c')
0 files changed, 0 insertions, 0 deletions