summaryrefslogtreecommitdiffstats
path: root/drivers/iio/common
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2017-04-02 14:58:45 +0200
committerJonathan Cameron <jic23@kernel.org>2017-04-02 15:36:06 +0200
commit2ccc15036d812e75f334c0fb813104ef765a2c77 (patch)
treeeeddc87b33d4447c623f481e11efd63a9273d54e /drivers/iio/common
parentiio: adc: sun4i: add THERMAL dependency (diff)
downloadlinux-2ccc15036d812e75f334c0fb813104ef765a2c77.tar.xz
linux-2ccc15036d812e75f334c0fb813104ef765a2c77.zip
iio: imu: st_lsm6dsx: do not apply ODR configuration in write_raw handler
This patch allows to avoid a transitory that occurs when a given sensor has been already enabled (e.g. gyroscope) and the user is configuring the sample frequency of the other one (e.g. accelerometer). The transitory lasts until the accelerometer is enabled. During that time slice the gyroscope ODR is incorrectly modified as well. At the end of the transitory both sensors work at the right frequency. Fix it introducing st_lsm6dsx_check_odr() routine to check ODR consistency in write_raw handler in order to apply frequency configuration just in st_lsm6dsx_set_odr() Fixes: 290a6ce11d93 (iio: imu: add support to lsm6dsx driver) Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/common')
0 files changed, 0 insertions, 0 deletions