diff options
author | Ching-Kang Yen <chingkang@chromium.org> | 2020-03-31 19:10:36 +0800 |
---|---|---|
committer | Ching-Kang Yen <chingkang@chromium.org> | 2020-04-23 13:42:42 +0000 |
commit | 86be30f5c4220112c6303c176f12096151285515 (patch) | |
tree | cfeeb602160484cfd88b29ddaaf741ac1e09d9e8 /driver/mag_lis2mdl.c | |
parent | 246044881c894aac0f552e5218b8207f74d105f7 (diff) | |
download | chrome-ec-86be30f5c4220112c6303c176f12096151285515.tar.gz |
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 <chingkang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2130146
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'driver/mag_lis2mdl.c')
-rw-r--r-- | driver/mag_lis2mdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |