summaryrefslogtreecommitdiff
path: root/board/scarlet
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-03-12 13:52:48 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-03-14 07:04:02 -0700
commitabde1bca995f018f4c1df8dc24a0a33c18557871 (patch)
tree19310b6df4beda45a457946f235e305424aab9a5 /board/scarlet
parentccea4b67f2e36a505ddf546bde284f75d728add0 (diff)
downloadchrome-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/scarlet')
-rw-r--r--board/scarlet/board.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c
index 5d3dc341ec..797d828e83 100644
--- a/board/scarlet/board.c
+++ b/board/scarlet/board.c
@@ -391,26 +391,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] = {
@@ -428,28 +413,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,
- },
- /* Enable gyro in S0 */
- [SENSOR_CONFIG_EC_S0] = {
- .odr = 0,
- .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,
- },
- },
},
[VSYNC] = {
.name = "Camera vsync",