Commit 70575abe authored by mario tesi's avatar mario tesi Committed by Jonathan Cameron

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: default avatarmario tesi <mario.tesi@st.com>
Acked-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 050833f1
...@@ -595,7 +595,7 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = { ...@@ -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[] = { ...@@ -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[] = { ...@@ -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,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment