Add switch to report tablet mode.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Enric Balletbo Serra <enric.balletbo@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
.bit = EC_MKBP_LID_OPEN,
.inverted = true,
},
+ {
+ .ev_type = EV_SW,
+ .code = SW_TABLET_MODE,
+ .bit = EC_MKBP_TABLET_MODE,
+ },
};
/*
/* Switches */
#define EC_MKBP_LID_OPEN 0
+#define EC_MKBP_TABLET_MODE 1
/*****************************************************************************/
/* Temperature sensor commands */