From e0b50372154ff2f0cdc094548e563de330d13018 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Thu, 28 Jan 2021 14:17:45 -0800 Subject: 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 Change-Id: I7d8e4ff1a647e73251b91a185780025bfae78187 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2693915 Reviewed-by: Alexandru M Stan Reviewed-by: Aseda Aboagye --- board/morphius/board.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'board/morphius') diff --git a/board/morphius/board.c b/board/morphius/board.c index 4593d8a27e..137fc69af9 100644 --- a/board/morphius/board.c +++ b/board/morphius/board.c @@ -56,8 +56,6 @@ static void board_gmr_tablet_switch_isr(enum gpio_signal signal); static bool support_aoz_ppc; static bool ignore_c1_dp; -#ifdef HAS_TASK_MOTIONSENSE - /* Motion sensors */ static struct mutex g_lid_mutex; static struct mutex g_base_mutex; @@ -205,8 +203,6 @@ struct motion_sensor_t icm426xx_base_gyro = { .max_frequency = ICM426XX_GYRO_MAX_FREQ, }; -#endif /* HAS_TASK_MOTIONSENSE */ - const struct pwm_t pwm_channels[] = { [PWM_CH_KBLIGHT] = { .channel = 3, -- cgit v1.2.1