aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2018-10-05 14:41:13 -0400
committerJiri Kosina <jkosina@suse.cz>2018-10-09 04:40:55 -0400
commit78d8f8f1a1800cf6068ffcac7a14cda19ae693d8 (patch)
treef1ca9098f0723f22826bca1c7fa2fbd3b842335a
parent5b372600ccf1116701e96cf593559a60c9bee7e0 (diff)
mfd: cros: add "base attached" MKBP switch definition
This adds a "base attached" switch definition to the MKBP protocol that is used by Whiskers driver to properly determine device state (clamshell vs tablet mode). Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--include/linux/mfd/cros_ec_commands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h
index 6e1ab9bead28..7690f0793965 100644
--- a/include/linux/mfd/cros_ec_commands.h
+++ b/include/linux/mfd/cros_ec_commands.h
@@ -2132,6 +2132,7 @@ struct ec_response_get_next_event_v1 {
2132/* Switches */ 2132/* Switches */
2133#define EC_MKBP_LID_OPEN 0 2133#define EC_MKBP_LID_OPEN 0
2134#define EC_MKBP_TABLET_MODE 1 2134#define EC_MKBP_TABLET_MODE 1
2135#define EC_MKBP_BASE_ATTACHED 2
2135 2136
2136/*****************************************************************************/ 2137/*****************************************************************************/
2137/* Temperature sensor commands */ 2138/* Temperature sensor commands */