From: Dmitry Torokhov Date: Fri, 5 Oct 2018 18:41:13 +0000 (-0700) Subject: mfd: cros: add "base attached" MKBP switch definition X-Git-Tag: Ubuntu-5.13.0-19.19~9935^2~4^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=78d8f8f1a1800cf6068ffcac7a14cda19ae693d8;p=mirror_ubuntu-jammy-kernel.git 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 Acked-by: Lee Jones Signed-off-by: Jiri Kosina --- 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 { /* Switches */ #define EC_MKBP_LID_OPEN 0 #define EC_MKBP_TABLET_MODE 1 +#define EC_MKBP_BASE_ATTACHED 2 /*****************************************************************************/ /* Temperature sensor commands */