linux/drivers/staging/iio
Gabriel Shahrouzi bf1605e2ea staging: iio: ad5933: Correct settling cycles encoding per datasheet
commit 60638e2a2d upstream.

The AD5933 datasheet (Table 13) lists the maximum cycles to be 0x7FC
(2044).

Clamp the user input to the maximum effective value of 0x7FC cycles.

Fixes: f94aa354d6 ("iio: impedance-analyzer: New driver for AD5933/4 Impedance Converter, Network Analyzer")
Cc: stable@vger.kernel.org
Signed-off-by: Gabriel Shahrouzi <gshahrouzi@gmail.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://patch.msgid.link/20250420013009.847851-1-gshahrouzi@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-06-27 11:11:23 +01:00
..
accel staging: iio: accel: adis16240: Call '__adis_initial_startup()' 2022-11-23 20:37:51 +00:00
adc staging: iio: adc: ad7816: Correct conditional logic for store mode 2025-05-18 08:24:51 +02:00
addac staging: iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-13 19:19:23 +01:00
Documentation iio: resolver: ad2s1210: move out of staging 2023-10-12 09:20:50 +01:00
frequency staging: iio: ad9832: Correct phase range check 2025-01-17 13:40:52 +01:00
impedance-analyzer staging: iio: ad5933: Correct settling cycles encoding per datasheet 2025-06-27 11:11:23 +01:00
Kconfig iio: resolver: ad2s1210: move out of staging 2023-10-12 09:20:50 +01:00
Makefile iio: resolver: ad2s1210: move out of staging 2023-10-12 09:20:50 +01:00
TODO staging: iio: remove mention of defunct list 2021-03-25 19:13:49 +00:00