iio: imu: st_lsm6dsx: Fix FIFO diff mask for tagged fifo

According to the latest version of datasheet the mask
	for number of unread sensor data in FIFO_STATUS registers
	has been extended to 10 bits

	The devices involved are:
	 - LSM6DSO
	 - LSM6DSOX
	 - ASM330LHH
	 - LSM6DSR
	 - ISM330DHCX

Signed-off-by: mario tesi <mario.tesi@st.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
mario tesi 2019-08-22 15:22:19 +02:00 committed by Jonathan Cameron
parent 050833f1b1
commit 70575abeaa
1 changed files with 3 additions and 3 deletions

View File

@ -595,7 +595,7 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = {
}, },
.fifo_diff = { .fifo_diff = {
.addr = 0x3a, .addr = 0x3a,
.mask = GENMASK(8, 0), .mask = GENMASK(9, 0),
}, },
.th_wl = 1, .th_wl = 1,
}, },
@ -725,7 +725,7 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = {
}, },
.fifo_diff = { .fifo_diff = {
.addr = 0x3a, .addr = 0x3a,
.mask = GENMASK(8, 0), .mask = GENMASK(9, 0),
}, },
.th_wl = 1, .th_wl = 1,
}, },
@ -832,7 +832,7 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = {
}, },
.fifo_diff = { .fifo_diff = {
.addr = 0x3a, .addr = 0x3a,
.mask = GENMASK(8, 0), .mask = GENMASK(9, 0),
}, },
.th_wl = 1, .th_wl = 1,
}, },