summaryrefslogtreecommitdiff
path: root/board/nucleo-f411re
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/nucleo-f411re
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/nucleo-f411re')
-rw-r--r--board/nucleo-f411re/board.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/board/nucleo-f411re/board.c b/board/nucleo-f411re/board.c
index 237f896c8b..0f7c57f1e3 100644
--- a/board/nucleo-f411re/board.c
+++ b/board/nucleo-f411re/board.c
@@ -79,11 +79,6 @@ struct motion_sensor_t motion_sensors[] = {
.rot_standard_ref = NULL,
.default_range = 2, /* g, enough for laptop. */
.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,
@@ -94,11 +89,6 @@ struct motion_sensor_t motion_sensors[] = {
.odr = 10000 | ROUND_UP_FLAG,
.ec_rate = 100 * MSEC,
},
- /* Sensor off in S5 */
- [SENSOR_CONFIG_EC_S5] = {
- .odr = 0,
- .ec_rate = 0
- },
},
},
@@ -115,28 +105,6 @@ struct motion_sensor_t motion_sensors[] = {
.addr = BMI160_ADDR0,
.default_range = 1000, /* dps */
.rot_standard_ref = NULL,
- .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);