Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

joewu (吳仲振) and committed by
Dmitry Torokhov
8aaec117 b08134eb

+18
+15
drivers/input/keyboard/cros_ec_keyb.c
··· 100 100 .code = KEY_VOLUMEDOWN, 101 101 .bit = EC_MKBP_VOL_DOWN, 102 102 }, 103 + { 104 + .ev_type = EV_KEY, 105 + .code = KEY_BRIGHTNESSUP, 106 + .bit = EC_MKBP_BRI_UP, 107 + }, 108 + { 109 + .ev_type = EV_KEY, 110 + .code = KEY_BRIGHTNESSDOWN, 111 + .bit = EC_MKBP_BRI_DOWN, 112 + }, 113 + { 114 + .ev_type = EV_KEY, 115 + .code = KEY_SCREENLOCK, 116 + .bit = EC_MKBP_SCREEN_LOCK, 117 + }, 103 118 104 119 /* Switches */ 105 120 {
+3
include/linux/platform_data/cros_ec_commands.h
··· 3471 3471 #define EC_MKBP_VOL_UP 1 3472 3472 #define EC_MKBP_VOL_DOWN 2 3473 3473 #define EC_MKBP_RECOVERY 3 3474 + #define EC_MKBP_BRI_UP 4 3475 + #define EC_MKBP_BRI_DOWN 5 3476 + #define EC_MKBP_SCREEN_LOCK 6 3474 3477 3475 3478 /* Switches */ 3476 3479 #define EC_MKBP_LID_OPEN 0