diff options
author | Lorenzo Bianconi <[email protected]> | 2019-10-27 19:02:30 +0100 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2019-11-09 13:17:15 +0000 |
commit | fc3f6ad7f5dc6c899fbda0255865737bac88c2e0 (patch) | |
tree | 4ed8cb21d8edacf33134c3ef6ad19a58f51eceaa /lib/debugobjects.c | |
parent | 59af4e206365d38fe78a94852f1f9c28f4f92c9d (diff) |
iio: imu: st_lsm6dsx: fix ODR check in st_lsm6dsx_write_raw
Since st_lsm6dsx i2c master controller relies on accel device as trigger
and slave devices can run at different ODRs we must select an accel_odr >=
slave_odr. Report real accel ODR in st_lsm6dsx_check_odr() in order to
properly set sensor frequency in st_lsm6dsx_write_raw and avoid to
report unsupported frequency
Fixes: 6ffb55e5009ff ("iio: imu: st_lsm6dsx: introduce ST_LSM6DSX_ID_EXT sensor ids")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions