diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2016-12-28 15:09:33 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-12-28 21:49:29 -0800 |
commit | 1c68913e0205885329f29911d082c0327c14888a (patch) | |
tree | a3f671fdcc9c2f25919ec471022afc4b8124d456 /board/oak | |
parent | b19bb1f22a3fd0102030485d324c0321a18827e8 (diff) | |
download | chrome-ec-1c68913e0205885329f29911d082c0327c14888a.tar.gz |
driver: Move sensor private struture definition to boards.
sensor private structure for bmi160 and bmp280 were defined
in the drivers themselves. It worked because there was only one
instance of each sensors on a board. However, this is an error it
should be in board files, as it was done for other sensors like the kionix.
BUG=none
TEST=buildall.
BRANCH=kevin,reef
Change-Id: Ica3aba358d141a7df9a3e97251d4c1e520cbf2c8
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/424218
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/oak')
-rw-r--r-- | board/oak/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/oak/board.c b/board/oak/board.c index b56223adf3..99b4e9ba6b 100644 --- a/board/oak/board.c +++ b/board/oak/board.c @@ -649,8 +649,8 @@ const matrix_3x3_t base_standard_ref = { }; #endif -/* KX022 private data */ struct kionix_accel_data g_kx022_data; +struct bmi160_drv_data_t g_bmi160_data; struct motion_sensor_t motion_sensors[] = { #ifdef CONFIG_ACCELGYRO_BMI160 |