From 55dc3bb5577f2db697c2b0322d8d98f87aa47e38 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Tue, 19 Nov 2019 11:07:02 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1916679 Reviewed-by: Jack Rosenthal Auto-Submit: Leifu Zhao Commit-Queue: Jack Rosenthal --- board/tglrvp_ish/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/tglrvp_ish') diff --git a/board/tglrvp_ish/board.c b/board/tglrvp_ish/board.c index 313f7ced8a..3c8fd36cb6 100644 --- a/board/tglrvp_ish/board.c +++ b/board/tglrvp_ish/board.c @@ -30,7 +30,7 @@ const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); /* Sensor config */ 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; /* Drivers */ struct motion_sensor_t motion_sensors[] = { -- cgit v1.2.1