iio: imu: st_lsm6dsx: fix FIFO threshold mask for LSM6DSM/LSM6DSL
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Fri, 30 Mar 2018 18:43:22 +0000 (20:43 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Apr 2018 15:48:27 +0000 (16:48 +0100)
commitbe75eb86ac649865408756c873a4a3ddb2a0f688
tree2e4bd2f8ec8d51e3e5a006f67a67fb0792b9aedd
parent524c762844fede91df23a14231213b5a0c2562f1
iio: imu: st_lsm6dsx: fix FIFO threshold mask for LSM6DSM/LSM6DSL

According to the latest datasheet, LSM6DSM and LSM6DSL imu sensors
export GENMASK(10, 0) for FIFO threshold mask definition. Despite
that is not an actual issue since write on fifo_th register is protected
by max_fifo_size value, fix fifo_th and fifo_diff register definitions

Fixes: 290a6ce11d93 ("iio: imu: add support to lsm6dsx driver")
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_core.c