]> git.baikalelectronics.ru Git - kernel.git/commit
iio: common: st_sensors: check odr address value in st_sensors_set_odr()
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Sun, 17 Sep 2017 16:17:10 +0000 (18:17 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 10 Oct 2017 19:39:28 +0000 (20:39 +0100)
commit5d53127753a12d0b5dab5f65766031f1b1ee3ed5
tree8cf0e53dcc6bd8fddafd824e1555fde55af35ae1
parent481dd13f8d2834eb4e764f06e6c97e3e58b172b1
iio: common: st_sensors: check odr address value in st_sensors_set_odr()

Do not try to configure sample frequency if the sensor do not export
odr register address in register map. That change will be used to
properly support LIS3DHH accel sensor.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/st_sensors/st_sensors_core.c