File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
include/linux/platform_data Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,21 @@ static const struct cros_ec_bs_map cros_ec_keyb_bs[] = {
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
{
Original file line number Diff line number Diff line change @@ -3471,6 +3471,9 @@ struct ec_response_get_next_event_v1 {
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
You can’t perform that action at this time.
0 commit comments