diff options
author | Yuval Peress <peress@chromium.org> | 2019-11-19 11:07:02 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-21 19:44:12 +0000 |
commit | 55dc3bb5577f2db697c2b0322d8d98f87aa47e38 (patch) | |
tree | d31e4a3394ebca5955703e208927e490225c6335 /board/arcada_ish/board.c | |
parent | b2f6e2cbfad15bbf07c78be11f9fe6376acfb745 (diff) | |
download | chrome-ec-55dc3bb5577f2db697c2b0322d8d98f87aa47e38.tar.gz |
driver: lsm6dsm: Allow building without CONFIG_ACCEL_FIFO
This change refactors the lsm6dsm to allow building without the
use of the FIFO or sensor interrupts.
BUG=None
BRANCH=None
TEST=make buildall
Change-Id: I5b338d81061f25fd1c8209b4555f63ea4d8b2dbc
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1916679
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Auto-Submit: Leifu Zhao <leifu.zhao@intel.corp-partner.google.com>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board/arcada_ish/board.c')
-rw-r--r-- | board/arcada_ish/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/arcada_ish/board.c b/board/arcada_ish/board.c index 8c96067be5..ea8118642e 100644 --- a/board/arcada_ish/board.c +++ b/board/arcada_ish/board.c @@ -37,7 +37,7 @@ static struct mutex g_lid_mag_mutex; static struct mutex g_base_mutex; /* sensor private data */ -static struct lsm6dsm_data lsm6dsm_a_data; +static struct lsm6dsm_data lsm6dsm_a_data = LSM6DSM_DATA; static struct stprivate_data g_lis2dh_data; static struct lis2mdl_private_data lis2mdl_a_data; |