linux/drivers/iio/common
Lary Gibaud 5ea5de62b7 iio: st_sensors: rely on odr mask to know if odr can be set
commit e450e07c14 upstream.

Indeed, relying on addr being not 0 cannot work because some device have
their register to set odr at address 0. As a matter of fact, if the odr
can be set, then there is a mask.

Sensors with ODR register at address 0 are: lsm303dlh, lsm303dlhc, lsm303dlm

Fixes: 7d24517267 ("iio: common: st_sensors: check odr address value in st_sensors_set_odr()")
Signed-off-by: Lary Gibaud <yarl-baudig@mailoo.org>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-29 16:31:24 +02:00
..
cros_ec_sensors iio: cros_ec: Fix the maths for gyro scale calculation 2019-04-27 09:36:34 +02:00
hid-sensors
ms_sensors
ssp_sensors iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2019-05-31 06:46:25 -07:00
st_sensors iio: st_sensors: rely on odr mask to know if odr can be set 2020-04-29 16:31:24 +02:00
Kconfig
Makefile