[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181001213937.8774-1-dtor@chromium.org>
Date: Mon, 1 Oct 2018 14:39:36 -0700
From: Dmitry Torokhov <dtor@...omium.org>
To: Jiri Kosina <jikos@...nel.org>, Lee Jones <lee.jones@...aro.org>
Cc: Benjamin Tissoires <benjamin.tissoires@...hat.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
Nicolas Boichat <drinkcat@...omium.org>
Subject: [PATCH 1/2] 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@...omium.org>
---
Lee, I was wondering if it woudl be OK for cros_ec_commands.h to be
merged through HID tree.
include/linux/mfd/cros_ec_commands.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h
index 20ee71f10865..5fd0e429f472 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 {
/* Switches */
#define EC_MKBP_LID_OPEN 0
#define EC_MKBP_TABLET_MODE 1
+#define EC_MKBP_BASE_ATTACHED 2
/*****************************************************************************/
/* Temperature sensor commands */
--
2.19.0.605.g01d371f741-goog
Powered by blists - more mailing lists