]> www.infradead.org Git - users/dwmw2/linux.git/commit
iio: imu: st_lsm6dsx: take into account ts samples in wm configuration
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Fri, 31 Aug 2018 08:51:14 +0000 (10:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:55:59 +0000 (08:55 +0200)
commitd77c7de489ff136ec6ab57631bf47d04362de103
tree12f9011283d1712319cb3e35a2844874c3e0aa26
parent86716fd6b985f45689ca0e04936e95bfb420990a
iio: imu: st_lsm6dsx: take into account ts samples in wm configuration

[ Upstream commit a13bf65f3f2e36008ea60b49d3bda2527e09fd9c ]

Take into account hw timer samples in pattern length computation done
in st_lsm6dsx_update_watermark routine for watermark configuration.
Moreover use samples in pattern (sip) already computed in
st_lsm6dsx_update_decimators routine

Fixes: 213451076bd3 ("iio: imu: st_lsm6dsx: add hw timestamp support")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c