summaryrefslogtreecommitdiff
path: root/board/reef
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/reef
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/reef')
-rw-r--r--board/reef/board.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/reef/board.c b/board/reef/board.c
index 83d068bf49..8b7a9cecb2 100644
--- a/board/reef/board.c
+++ b/board/reef/board.c
@@ -779,8 +779,10 @@ const matrix_3x3_t mag_standard_ref = {
{ 0, 0, FLOAT_TO_FP(-1)}
};
-/* KX022 private data */
struct kionix_accel_data g_kx022_data;
+struct bmi160_drv_data_t g_bmi160_data;
+struct bmp280_drv_data_t bmp280_drv_data;
+
/* FIXME(dhendrix): Copied from Amenia, probably need to tweak for Reef */
struct motion_sensor_t motion_sensors[] = {