summaryrefslogtreecommitdiff
path: root/board/phaser
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-11-23 23:27:59 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-29 04:31:50 -0800
commitf3c205e9b4bcd391c7eeb633e424f06c20aed99e (patch)
tree7796d068f7cf7eea5a71fee3906631a590080b2f /board/phaser
parent625a4d856d767c3226e6869f5d38ca3c70b2b95c (diff)
downloadchrome-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 'board/phaser')
-rw-r--r--board/phaser/board.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/board/phaser/board.h b/board/phaser/board.h
index f507d6a949..d86b93dc84 100644
--- a/board/phaser/board.h
+++ b/board/phaser/board.h
@@ -38,8 +38,6 @@
#define CONFIG_LID_ANGLE_UPDATE
#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL
#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL
-#define CONFIG_LID_ANGLE_TABLET_MODE
-#define CONFIG_LID_ANGLE_INVALID_CHECK
#define CONFIG_DYNAMIC_MOTION_SENSOR_COUNT
/* Interrupt and fifo are only used for base accelerometer