summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2022-11-22 16:16:52 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-24 06:01:09 +0000
commit2856f03d0c61a6fd4ba89b63cec09689c4a9004e (patch)
tree634598b489e556a260ebfb083b31a2bb3374ef59
parent5dbfddec42bf47f88b371f16660beb48de058b57 (diff)
downloadchrome-ec-2856f03d0c61a6fd4ba89b63cec09689c4a9004e.tar.gz
kconfig: remove tablet mode config dependency
Detachable device may use only GMR sensor or base attach signal to detect tablet mode. Lid angle is not required to enable tablet mode switch. Thus remove the lid angle -> table mode dependency. BUG=b:251747125 TEST=zmake build --all BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I49993bafb3f30d5eede359f509142f1618e24629 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4045300 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--zephyr/Kconfig.motionsense4
1 files changed, 1 insertions, 3 deletions
diff --git a/zephyr/Kconfig.motionsense b/zephyr/Kconfig.motionsense
index af859e0075..86a7fb08bc 100644
--- a/zephyr/Kconfig.motionsense
+++ b/zephyr/Kconfig.motionsense
@@ -93,10 +93,9 @@ config PLATFORM_EC_LID_ANGLE
peripheral devices(refer "Lid Angle Update" below).
# TODO(b/173507858): add more detail after .dts change
-if PLATFORM_EC_LID_ANGLE
-
config PLATFORM_EC_LID_ANGLE_UPDATE
bool "Lid Angle Update"
+ depends on PLATFORM_EC_LID_ANGLE
help
Enable this to allow using the lid angle measurement to determine if
peripheral devices should be enabled or disabled, like key scanning,
@@ -127,7 +126,6 @@ config PLATFORM_EC_GMR_TABLET_MODE
in common/tablet_mode.c.
endif # PLATFORM_EC_TABLET_MODE
-endif # PLATFORM_EC_LID_ANGLE
config PLATFORM_EC_CONSOLE_CMD_ACCELS
bool "Console commands: accels, accelrate, accelinit, accelinfo, etc."