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 /driver/accelgyro_lsm6dsm.c | |
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 'driver/accelgyro_lsm6dsm.c')
-rw-r--r-- | driver/accelgyro_lsm6dsm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/driver/accelgyro_lsm6dsm.c b/driver/accelgyro_lsm6dsm.c index 146ea4987f..4ef95c3018 100644 --- a/driver/accelgyro_lsm6dsm.c +++ b/driver/accelgyro_lsm6dsm.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2016 The Chromium OS Authors. All rights reserved. +/* Copyright 2016 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -20,9 +20,6 @@ #define CPRINTF(format, args...) cprintf(CC_ACCEL, format, ## args) -struct lsm6dsm_data lsm6dsm_a_data; -struct lsm6dsm_data lsm6dsm_g_data; - /** * @return output base register for sensor */ |