linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] mfd: cros: add "base attached" MKBP switch definition
@ 2018-10-05 18:41 Dmitry Torokhov
  2018-10-05 18:41 ` [PATCH v2 2/2] HID: google: add support tablet mode switch for Whiskers Dmitry Torokhov
  2018-10-09  6:28 ` [PATCH v2 1/2] mfd: cros: add "base attached" MKBP switch definition Lee Jones
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2018-10-05 18:41 UTC (permalink / raw)
  To: Jiri Kosina, Lee Jones
  Cc: Benjamin Tissoires, linux-input, linux-kernel, Nicolas Boichat

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>
---

v2 changes: None

Lee, I was wondering if it would 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-09  8:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-05 18:41 [PATCH v2 1/2] mfd: cros: add "base attached" MKBP switch definition Dmitry Torokhov
2018-10-05 18:41 ` [PATCH v2 2/2] HID: google: add support tablet mode switch for Whiskers Dmitry Torokhov
2018-10-09  8:13   ` Benjamin Tissoires
2018-10-09  6:28 ` [PATCH v2 1/2] mfd: cros: add "base attached" MKBP switch definition Lee Jones
2018-10-09  8:41   ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).