]> 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)
commit14777e64ca0ff4ffbbf6659d07d8d8886f8f9e89
treeec4b9e8db61176f208bd455a6a4b29a6c6d4ef31
parent49ce0790056f004a6e591876c6b02648229dafa2
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