linux/drivers/iio/imu/st_lsm6dsx
Paul Cercueil 9e5b4cd2e9 iio: imu: st_lsm6dsx: Limit requested watermark value to hwfifo size
Instead of returning an error if the watermark value is too high, which
the core will silently ignore anyway, limit the value to the hardware
FIFO size; a lower-than-requested value is still better than using the
default, which is usually 1.

Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/20220117102512.31725-1-paul@crapouillou.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-06-15 22:07:09 +01:00
..
Kconfig iio: imu: st_lsm6dsx: add support to ASM330LHHX 2022-04-28 19:22:54 +01:00
Makefile iio: imu: st_lsm6dsx: add i3c basic support for LSM6DSO and LSM6DSR 2019-07-27 22:55:27 +01:00
st_lsm6dsx_buffer.c iio: imu: st_lsm6dsx: add support to ASM330LHHX 2022-04-28 19:22:54 +01:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: Limit requested watermark value to hwfifo size 2022-06-15 22:07:09 +01:00
st_lsm6dsx_i2c.c iio: imu: lsm6dsx: Move exported symbols to the IIO_LSM6DSX namespace 2022-06-15 22:07:09 +01:00
st_lsm6dsx_i3c.c iio: imu: lsm6dsx: Move exported symbols to the IIO_LSM6DSX namespace 2022-06-15 22:07:09 +01:00
st_lsm6dsx_shub.c iio: imu: st_lsm6dsx: set 10ms as min shub slave timeout 2020-11-01 20:54:15 +00:00
st_lsm6dsx_spi.c iio: imu: lsm6dsx: Move exported symbols to the IIO_LSM6DSX namespace 2022-06-15 22:07:09 +01:00
st_lsm6dsx.h iio: imu: st_lsm6dsx: add support to ASM330LHHX 2022-04-28 19:22:54 +01:00