diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2019-05-14 01:26:36 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-16 09:04:21 -0700 |
commit | 2c321f4ab89d2ec171f7b3c463893fa5051479fe (patch) | |
tree | 1b4426c681d937a8f0d8b636ed1022dc6e12bba6 | |
parent | 6b34ae8f4703a7b8646db5b907f85ecba4c3f9ec (diff) | |
download | chrome-ec-2c321f4ab89d2ec171f7b3c463893fa5051479fe.tar.gz |
FIXUP: driver: lis2mdl: add standalone support
Fix constant used when LIS2MDL is behind LSM6DSM.
BUG=b:128619310,b:124085261
BRANCH=none
TEST=meep board compile.
Change-Id: I35ec3659dfedceedfa52400c37972fcf387f6375
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1610315
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Yuval Peress <peress@chromium.org>
-rw-r--r-- | driver/mag_lis2mdl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/mag_lis2mdl.c b/driver/mag_lis2mdl.c index 460d3cb81d..2fd35612be 100644 --- a/driver/mag_lis2mdl.c +++ b/driver/mag_lis2mdl.c @@ -150,7 +150,7 @@ int lis2mdl_thru_lsm6dsm_init(const struct motion_sensor_t *s) LSM6DSM_MAIN_SENSOR(s), CONFIG_ACCELGYRO_SEC_ADDR, LIS2MDL_WHO_AM_I_REG, LIS2MDL_WHO_AM_I, - LIS2MDL_CFG_REG_A_ADDR, LIS2MDL_SW_RESET); + LIS2MDL_CFG_REG_A_ADDR, LIS2MDL_FLAG_SW_RESET); if (ret != EC_SUCCESS) goto err_unlock; @@ -158,7 +158,7 @@ int lis2mdl_thru_lsm6dsm_init(const struct motion_sensor_t *s) LSM6DSM_MAIN_SENSOR(s), CONFIG_ACCELGYRO_SEC_ADDR, LIS2MDL_CFG_REG_A_ADDR, - LIS2MDL_ODR_50HZ | LIS2MDL_CONT_MODE); + LIS2MDL_ODR_50HZ | LIS2MDL_MODE_CONT); if (ret != EC_SUCCESS) goto err_unlock; |