]> git.baikalelectronics.ru Git - kernel.git/commit
HID: lenovo: Make array tp10ubkbd_led static const
authorColin Ian King <colin.i.king@gmail.com>
Wed, 5 Oct 2022 15:42:16 +0000 (16:42 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 18 Oct 2022 12:43:59 +0000 (14:43 +0200)
commita989a916376b7316bad91adad3f74140969b8ed5
treeec4b9e8db61176f208bd455a6a4b29a6c6d4ef31
parentf39cc8341b743b6c754d259e42085c9f24049b63
HID: lenovo: Make array tp10ubkbd_led static const

Don't populate the read-only array tp10ubkbd_led on the stack but instead
make it static const. Also makes the object code a little smaller.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo.c