summaryrefslogtreecommitdiff
path: root/board/wheatley
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-12-28 15:09:33 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-12-28 21:49:29 -0800
commit1c68913e0205885329f29911d082c0327c14888a (patch)
treea3f671fdcc9c2f25919ec471022afc4b8124d456 /board/wheatley
parentb19bb1f22a3fd0102030485d324c0321a18827e8 (diff)
downloadchrome-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/wheatley')
-rw-r--r--board/wheatley/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/wheatley/board.c b/board/wheatley/board.c
index c467d4dd89..c404475734 100644
--- a/board/wheatley/board.c
+++ b/board/wheatley/board.c
@@ -454,8 +454,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[] = {
[LID_ACCEL] = {