diff options
| author | Paul Cercueil <paul@crapouillou.net> | 2022-01-17 10:25:11 +0000 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-06-15 22:07:09 +0100 |
| commit | 9e5b4cd2e9c0b1bd426bda633677eb870327faf5 (patch) | |
| tree | 61ff1206beb73f77e68a1ef057ce98ba3ed14ac5 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | iio: imu: lsm6dsx: Move exported symbols to the IIO_LSM6DSX namespace (diff) | |
| download | linux-9e5b4cd2e9c0b1bd426bda633677eb870327faf5.tar.gz linux-9e5b4cd2e9c0b1bd426bda633677eb870327faf5.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
