diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-03-12 13:52:48 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-14 07:04:02 -0700 |
commit | abde1bca995f018f4c1df8dc24a0a33c18557871 (patch) | |
tree | 19310b6df4beda45a457946f235e305424aab9a5 /board/rainier/board.c | |
parent | ccea4b67f2e36a505ddf546bde284f75d728add0 (diff) | |
download | chrome-ec-abde1bca995f018f4c1df8dc24a0a33c18557871.tar.gz |
board: In motion sensor array, remove assignment to 0
Assignment to 0 are no necessary.
BUG=none
TEST=compile, check nami.
BRANCH=none
Change-Id: I1bc11efcff31cbfe2947580e7b8db0d5ba72d444
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/959502
Diffstat (limited to 'board/rainier/board.c')
-rw-r--r-- | board/rainier/board.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/board/rainier/board.c b/board/rainier/board.c index e56cab47d0..c173b2f427 100644 --- a/board/rainier/board.c +++ b/board/rainier/board.c @@ -381,26 +381,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] = { - .odr = 0, - .ec_rate = 0, - }, /* Enable accel in S0 */ [SENSOR_CONFIG_EC_S0] = { .odr = 10000 | ROUND_UP_FLAG, .ec_rate = 100 * MSEC, }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S3] = { - .odr = 0, - .ec_rate = 0, - }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S5] = { - .odr = 0, - .ec_rate = 0 - }, }, }, [LID_GYRO] = { @@ -419,26 +404,11 @@ struct motion_sensor_t motion_sensors[] = { .min_frequency = BMI160_GYRO_MIN_FREQ, .max_frequency = BMI160_GYRO_MAX_FREQ, .config = { - /* AP: by default shutdown all sensors */ - [SENSOR_CONFIG_AP] = { - .odr = 0, - .ec_rate = 0, - }, /* Enable gyro in S0 */ [SENSOR_CONFIG_EC_S0] = { .odr = 10000 | ROUND_UP_FLAG, .ec_rate = 100 * MSEC, }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S3] = { - .odr = 0, - .ec_rate = 0, - }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S5] = { - .odr = 0, - .ec_rate = 0, - }, }, }, [LID_BARO] = { @@ -454,28 +424,6 @@ struct motion_sensor_t motion_sensors[] = { .default_range = 1 << 18, /* 1bit = 4 Pa, 16bit ~= 2600 hPa */ .min_frequency = BMP280_BARO_MIN_FREQ, .max_frequency = BMP280_BARO_MAX_FREQ, - .config = { - /* AP: by default shutdown all sensors */ - [SENSOR_CONFIG_AP] = { - .odr = 0, - .ec_rate = 0, - }, - /* Sensor off in S0 */ - [SENSOR_CONFIG_EC_S0] = { - .odr = 0, - .ec_rate = 0, - }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S3] = { - .odr = 0, - .ec_rate = 0, - }, - /* Sensor off in S3/S5 */ - [SENSOR_CONFIG_EC_S5] = { - .odr = 0, - .ec_rate = 0, - }, - }, }, }; const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); |