]> git.baikalelectronics.ru Git - kernel.git/commit
Input: palmas-pwrbutton - make a couple of arrays static const
authorColin Ian King <colin.i.king@googlemail.com>
Tue, 30 Nov 2021 01:27:18 +0000 (17:27 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 7 Dec 2021 07:24:01 +0000 (23:24 -0800)
commitfc54fee3583f8c4d33dc3471621f3ef426159989
tree54c0f6199611c77650a282757fee2192dfa6b9a3
parent19e7ae5bd0d0ecbf0d1b903c68d962869dd1cda5
Input: palmas-pwrbutton - make a couple of arrays static const

Don't populate a couple of arrays on the stack but instead make them
static const. Also makes the object code smaller by a few hundred
bytes.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20211129231749.619469-1-colin.i.king@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/palmas-pwrbutton.c