linux-sg2042/drivers/iio/common/st_sensors
Lary Gibaud e450e07c14 iio: st_sensors: rely on odr mask to know if odr can be set
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>
2020-04-19 17:50:02 +01:00
..
Kconfig iio: st_sensors: Fix build error 2019-08-25 18:57:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
st_sensors_buffer.c iio: make st_sensors drivers use regmap 2019-07-27 22:52:06 +01:00
st_sensors_core.c iio: st_sensors: rely on odr mask to know if odr can be set 2020-04-19 17:50:02 +01:00
st_sensors_core.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
st_sensors_i2c.c iio: st_sensors: Drop redundant parameter from st_sensors_of_name_probe() 2020-01-13 21:51:52 +00:00
st_sensors_spi.c iio: st_sensors: Make use of device properties 2020-01-13 21:53:39 +00:00
st_sensors_trigger.c iio: st_sensors: Describe function parameters in kernel-doc 2019-12-29 15:20:05 +00:00