diff options
author | Furquan Shaikh <furquan@google.com> | 2018-11-23 23:27:59 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-29 04:31:50 -0800 |
commit | f3c205e9b4bcd391c7eeb633e424f06c20aed99e (patch) | |
tree | 7796d068f7cf7eea5a71fee3906631a590080b2f /include | |
parent | 625a4d856d767c3226e6869f5d38ca3c70b2b95c (diff) | |
download | chrome-ec-f3c205e9b4bcd391c7eeb633e424f06c20aed99e.tar.gz |
motion_lid: Use CONFIG_TABLET_MODE
This change updates motion_lid driver to use CONFIG_TABLET_MODE to
decide if device requires reporting of tablet mode. This basically
makes the config options CONFIG_LID_ANGLE_INVALID_CHECK and
CONFIG_LID_ANGLE_TABLET_MODE obsolete. Now that EC will always report
tablet mode aligned with Chrome (at 180 degree), any device that
supports tablet mode and uses motion lid driver will require this by
default and should not require boards to individually select any
special config options. Thus, it also gets rid of unused
CONFIG_LID_ANGLE_TABLET_MODE and CONFIG_LID_ANGLE_INVALID_CHECK.
BUG=b:120050761
BRANCH=octopus
TEST=make -j buildall
Change-Id: Ib73af66ca1c17d4033cf54f0b4b86bf41793f3a3
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1350470
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/config.h b/include/config.h index 1e7b9b3a09..85f6204388 100644 --- a/include/config.h +++ b/include/config.h @@ -1732,17 +1732,6 @@ /* Do we want to detect the lid angle? */ #undef CONFIG_LID_ANGLE -/* - * Add code for preventing 0 and 360 degree transition. Needed when - * Device supports tablet mode. - */ -#undef CONFIG_LID_ANGLE_INVALID_CHECK - -/* - * Use lid angle to detect tablet mode. - */ -#undef CONFIG_LID_ANGLE_TABLET_MODE - /* Which sensor is located on the base? */ #undef CONFIG_LID_ANGLE_SENSOR_BASE /* Which sensor is located on the lid? */ |