From 86be30f5c4220112c6303c176f12096151285515 Mon Sep 17 00:00:00 2001 From: Ching-Kang Yen Date: Tue, 31 Mar 2020 19:10:36 +0800 Subject: driver: Add BMI common code Add accelgyro_bmi_common.(c/h) for the code shared among the BMI. BRANCH=None BUG=b:146144827 TEST=make -j4 BOARD=ampton Then, flash the ec.bin into DUT, check sensor data is available on DUT by "ectool motionsense". TEST=make buildall -j Change-Id: Ia56ffb0896943b08640b3d6ca96324ac5e7d93a0 Signed-off-by: Ching-Kang Yen Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2130146 Reviewed-by: Gwendal Grignou --- driver/mag_lis2mdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver/mag_lis2mdl.c') diff --git a/driver/mag_lis2mdl.c b/driver/mag_lis2mdl.c index 1f05800c08..a9a00cc7c9 100644 --- a/driver/mag_lis2mdl.c +++ b/driver/mag_lis2mdl.c @@ -33,7 +33,7 @@ void lis2mdl_normalize(const struct motion_sensor_t *s, struct mag_cal_t *cal = LIS2MDL_CAL(s); int i; -#ifdef CONFIG_MAG_BMI160_LIS2MDL +#ifdef CONFIG_MAG_BMI_LIS2MDL struct lis2mdl_private_data *private = LIS2MDL_DATA(s); intv3_t hn1; -- cgit v1.2.1