diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-09-17 00:01:29 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-10-09 19:11:28 +0100 |
commit | fdb828e2c71a09bb9e865f41b015597c5f671705 (patch) | |
tree | 8a89d7c6ab3e1e79742eea97e27face22ce8b3fd /drivers/iio/pressure/mpl115_spi.c | |
parent | 972917419a0ba25afbf69d5d8c9fa644d676f887 (diff) | |
download | blackbird-op-linux-fdb828e2c71a09bb9e865f41b015597c5f671705.tar.gz blackbird-op-linux-fdb828e2c71a09bb9e865f41b015597c5f671705.zip |
iio: imu: st_lsm6dsx: fix waitime for st_lsm6dsx i2c controller
i2c controller available in st_lsm6dsx series performs i2c slave
configuration using accel clock as trigger.
st_lsm6dsx_shub_wait_complete routine is used to wait the controller has
carried out the requested configuration. However if the accel sensor is not
enabled we should not use its configured odr to estimate a proper timeout
Fixes: c91c1c844ebd ("iio: imu: st_lsm6dsx: add i2c embedded controller support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/pressure/mpl115_spi.c')
0 files changed, 0 insertions, 0 deletions