diff options
author | Paul Ma <magf@bitland.corp-partner.google.com> | 2018-06-19 16:44:04 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-22 02:39:43 -0700 |
commit | 286faa5e78ef2f6768ae6eb06a7a54024f87e7d5 (patch) | |
tree | 952da0a44ce172451fd0f482c44a4a3670b16058 /board/yorp/board.c | |
parent | 8032e90ccbceaf799eeabf6709ab66981b6cf720 (diff) | |
download | chrome-ec-286faa5e78ef2f6768ae6eb06a7a54024f87e7d5.tar.gz |
FIXUP: fix lsm6dsm driver specific data type declaration
accelgyro_lsm6dsm driver use lsm6dsm_data as its driver specific
data type rather than stprivate_data. Wrong data type will lead
to random corrupted runtime data.
Signed-off-by: Paul Ma <magf@bitland.corp-partner.google.com>
BRANCH=none
BUG=b:110013316
TEST=make buildall -j
Change-Id: I50e0da293921c2662e97aa6f47c83519609186b5
Reviewed-on: https://chromium-review.googlesource.com/1105797
Commit-Ready: Paul Ma <magf@bitland.corp-partner.google.com>
Tested-by: Paul Ma <magf@bitland.corp-partner.google.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/yorp/board.c')
-rw-r--r-- | board/yorp/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/yorp/board.c b/board/yorp/board.c index a2cf80976a..77eb5cd5f1 100644 --- a/board/yorp/board.c +++ b/board/yorp/board.c @@ -116,8 +116,8 @@ const matrix_3x3_t base_standard_ref = { /* sensor private data */ static struct kionix_accel_data g_kx022_data; -static struct stprivate_data lsm6dsm_g_data; -static struct stprivate_data lsm6dsm_a_data; +static struct lsm6dsm_data lsm6dsm_g_data; +static struct lsm6dsm_data lsm6dsm_a_data; /* Drivers */ struct motion_sensor_t motion_sensors[] = { |