diff options
author | Lary Gibaud <yarl-baudig@mailoo.org> | 2020-04-11 17:16:06 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-04-19 17:50:02 +0100 |
commit | e450e07c14abae563ad13b064cbce9fdccc6bc8d (patch) | |
tree | 9ccae72fa156639e4da4ed8427f3d1a57c7b2192 /lib/mpi/mpiutil.c | |
parent | 3b7f9dbb827ce8680b98490215e698b6079a9ec5 (diff) |
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: 7d245172675a ("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>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions