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)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 2 Sep 2018 20:19:53 +0000 (21:19 +0100)
commita13bf65f3f2e36008ea60b49d3bda2527e09fd9c
tree936dd02a609bded464855afb80d4e8d54f70299e
parent65099ea85e885c3ea1272eca8774b771419d8ce8
iio: imu: st_lsm6dsx: take into account ts samples in wm configuration

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>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c