summaryrefslogtreecommitdiff
path: root/board/scarlet
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2021-01-28 14:17:45 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-22 23:23:46 +0000
commite0b50372154ff2f0cdc094548e563de330d13018 (patch)
treeefe0c6d34e31616c7f354eba6d2d34721559aca1 /board/scarlet
parent57e2fc8d1199db376736426cd3bce26c090fc2f5 (diff)
downloadchrome-ec-e0b50372154ff2f0cdc094548e563de330d13018.tar.gz
board: Remove HAS_TASK_MOTIONSENSE when always defined
ifdef HAS_TASK_MOTIONSENSE is only necessary for board that may not have sensor. Only oak board may be compiled without the sensor stack. BUG=none BRANCH=none TEST=compile. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I7d8e4ff1a647e73251b91a185780025bfae78187 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2693915 Reviewed-by: Alexandru M Stan <amstan@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/scarlet')
-rw-r--r--board/scarlet/board.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c
index 4544aa551c..403beb768b 100644
--- a/board/scarlet/board.c
+++ b/board/scarlet/board.c
@@ -383,7 +383,6 @@ int board_get_version(void)
}
/* Motion sensors */
-#ifdef HAS_TASK_MOTIONSENSE
/* Mutexes */
static struct mutex g_base_mutex;
@@ -454,7 +453,6 @@ struct motion_sensor_t motion_sensors[] = {
},
};
const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors);
-#endif /* defined(HAS_TASK_MOTIONSENSE) */
int board_allow_i2c_passthru(int port)
{