summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorjoewu (吳仲振) <joewu@msi.com>2023-01-20 20:17:02 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-01-20 20:29:08 +0300
commit8aaec1177521eed07240ec5ac2bc55b2a1c35b42 (patch)
treedce5a1dce4fff3171c39eeba13e7e73825a1325b /drivers/input
parentb08134eb254db56e9ce8170d9b82f0d7a616b6f8 (diff)
downloadlinux-8aaec1177521eed07240ec5ac2bc55b2a1c35b42.tar.xz
Input: cros_ec_keyb - add 3 buttons for monitor function
Add 3 extra buttons: 'brightness up', 'brightness down' and 'screen lock' to support monitor manipulating function. Signed-off-by: Joe Wu <joewu@msi.com> Link: https://lore.kernel.org/r/e23628e2cb464d238eb1c33a9e1e516b@msi.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/cros_ec_keyb.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c
index 6f435125ec03..e7ecfca838df 100644
--- a/drivers/input/keyboard/cros_ec_keyb.c
+++ b/drivers/input/keyboard/cros_ec_keyb.c
@@ -100,6 +100,21 @@ static const struct cros_ec_bs_map cros_ec_keyb_bs[] = {
.code = KEY_VOLUMEDOWN,
.bit = EC_MKBP_VOL_DOWN,
},
+ {
+ .ev_type = EV_KEY,
+ .code = KEY_BRIGHTNESSUP,
+ .bit = EC_MKBP_BRI_UP,
+ },
+ {
+ .ev_type = EV_KEY,
+ .code = KEY_BRIGHTNESSDOWN,
+ .bit = EC_MKBP_BRI_DOWN,
+ },
+ {
+ .ev_type = EV_KEY,
+ .code = KEY_SCREENLOCK,
+ .bit = EC_MKBP_SCREEN_LOCK,
+ },
/* Switches */
{