diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-03-12 13:52:48 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2018-03-15 00:21:01 +0000 |
commit | 573ef04d67512e7a557324dd63dff2cbf17f63df (patch) | |
tree | 19310b6df4beda45a457946f235e305424aab9a5 /board/nautilus/board.c | |
parent | ade94f104b8a60475a2a3b5bcce597375de55939 (diff) | |
download | chrome-ec-573ef04d67512e7a557324dd63dff2cbf17f63df.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
(cherry picked from commit abde1bca995f018f4c1df8dc24a0a33c18557871)
Reviewed-on: https://chromium-review.googlesource.com/963746
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Trybot-Ready: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'board/nautilus/board.c')
-rw-r--r-- | board/nautilus/board.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/board/nautilus/board.c b/board/nautilus/board.c index 4fa24a8382..654b8e50d2 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -608,25 +608,13 @@ struct motion_sensor_t motion_sensors[] = { .max_frequency = BMA255_ACCEL_MAX_FREQ, .default_range = 2, /* g, to support tablet mode */ .config = { - /* AP: by default use EC settings */ - [SENSOR_CONFIG_AP] = { - .odr = 0, - .ec_rate = 0, - }, /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { .odr = 10000 | ROUND_UP_FLAG, - .ec_rate = 0, }, /* Sensor on in S3 */ [SENSOR_CONFIG_EC_S3] = { .odr = 10000 | ROUND_UP_FLAG, - .ec_rate = 0, - }, - /* Sensor off in S5 */ - [SENSOR_CONFIG_EC_S5] = { - .odr = 0, - .ec_rate = 0, }, }, }, @@ -646,11 +634,6 @@ struct motion_sensor_t motion_sensors[] = { .max_frequency = BMI160_ACCEL_MAX_FREQ, .default_range = 2, /* g, to support tablet mode */ .config = { - /* AP: by default use EC settings */ - [SENSOR_CONFIG_AP] = { - .odr = 0, - .ec_rate = 0, - }, /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { .odr = 10000 | ROUND_UP_FLAG, @@ -659,12 +642,6 @@ struct motion_sensor_t motion_sensors[] = { /* Sensor on in S3 */ [SENSOR_CONFIG_EC_S3] = { .odr = 10000 | ROUND_UP_FLAG, - .ec_rate = 0, - }, - /* Sensor off in S5 */ - [SENSOR_CONFIG_EC_S5] = { - .odr = 0, - .ec_rate = 0 }, }, }, @@ -683,28 +660,6 @@ struct motion_sensor_t motion_sensors[] = { .rot_standard_ref = &base_standard_ref, .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, - }, - /* EC does not need 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); |