From 7dfb352adcd9ad6dccf198731e59fb8a7b95a8f4 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Mon, 19 Mar 2018 14:37:25 -0700 Subject: board: In motion sensor array, remove more assignment to 0 BUG=none TEST=Compile BRANCH=none Change-Id: I86ccc26d7fb6d482dca3275a4365729ff8644777 Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/969626 --- board/mchpevb1/board.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'board/mchpevb1') diff --git a/board/mchpevb1/board.c b/board/mchpevb1/board.c index c6afeb0db2..eeeb557b96 100644 --- a/board/mchpevb1/board.c +++ b/board/mchpevb1/board.c @@ -944,20 +944,11 @@ struct motion_sensor_t motion_sensors[] = { .min_frequency = BMI160_ACCEL_MIN_FREQ, .max_frequency = BMI160_ACCEL_MAX_FREQ, .config = { - /* AP: by default use EC settings */ - [SENSOR_CONFIG_AP] = { - }, /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { .odr = 10000 | ROUND_UP_FLAG, .ec_rate = 100 * MSEC, }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S3] = { - }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S5] = { - }, }, }, @@ -975,20 +966,6 @@ struct motion_sensor_t motion_sensors[] = { .rot_standard_ref = NULL, /* Identity Matrix. */ .min_frequency = BMI160_GYRO_MIN_FREQ, .max_frequency = BMI160_GYRO_MAX_FREQ, - .config = { - /* AP: by default shutdown all sensors */ - [SENSOR_CONFIG_AP] = { - }, - /* EC does not need in S0 */ - [SENSOR_CONFIG_EC_S0] = { - }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S3] = { - }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S5] = { - }, - }, }, #ifdef CONFIG_ACCEL_KX022 {.name = "Lid Accel", @@ -1006,22 +983,11 @@ struct motion_sensor_t motion_sensors[] = { .min_frequency = KX022_ACCEL_MIN_FREQ, .max_frequency = KX022_ACCEL_MAX_FREQ, .config = { - /* AP: by default use EC settings */ - [SENSOR_CONFIG_AP] = { - .odr = 10000 | ROUND_UP_FLAG, - .ec_rate = 100 * MSEC, - }, /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { .odr = 10000 | ROUND_UP_FLAG, .ec_rate = 100 * MSEC, }, - /* unused */ - [SENSOR_CONFIG_EC_S3] = { - }, - [SENSOR_CONFIG_EC_S5] = { - }, - }, }, #endif /* #ifdef CONFIG_ACCEL_KX022 */ }; -- cgit v1.2.1