Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ccc3a33 authored by Gwendal Grignou's avatar Gwendal Grignou Committed by Lee Jones
Browse files

input: cros_ec_keyb: Add Tablet Mode switch



Add switch to report tablet mode.

Signed-off-by: default avatarGwendal Grignou <gwendal@chromium.org>
Signed-off-by: default avatarEnric Balletbo Serra <enric.balletbo@collabora.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent cdd7950e
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -111,6 +111,11 @@ static const struct cros_ec_bs_map cros_ec_keyb_bs[] = {
		.bit		= EC_MKBP_LID_OPEN,
		.bit		= EC_MKBP_LID_OPEN,
		.inverted	= true,
		.inverted	= true,
	},
	},
	{
		.ev_type	= EV_SW,
		.code		= SW_TABLET_MODE,
		.bit		= EC_MKBP_TABLET_MODE,
	},
};
};


/*
/*
+1 −0
Original line number Original line Diff line number Diff line
@@ -2068,6 +2068,7 @@ struct ec_response_get_next_event {


/* Switches */
/* Switches */
#define EC_MKBP_LID_OPEN	0
#define EC_MKBP_LID_OPEN	0
#define EC_MKBP_TABLET_MODE	1


/*****************************************************************************/
/*****************************************************************************/
/* Temperature sensor commands */
/* Temperature sensor commands */