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/glados | |
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/glados')
-rw-r--r-- | board/glados/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/glados/board.c b/board/glados/board.c index b37f59feff..7ef71dd915 100644 --- a/board/glados/board.c +++ b/board/glados/board.c @@ -474,8 +474,8 @@ DECLARE_HOOK(HOOK_INIT, board_handle_reboot, HOOK_PRIO_FIRST); static struct mutex g_lid_mutex; static struct mutex g_base_mutex; -/* KX022 private data */ struct kionix_accel_data g_kx022_data; +struct bmi160_drv_data_t g_bmi160_data; struct motion_sensor_t motion_sensors[] = { /* |