linux-yocto/drivers/staging/iio
Gabriel Shahrouzi dfa9ef978d 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>
2025-06-27 11:08:50 +01:00
..
accel
adc staging: iio: adc: ad7816: Correct conditional logic for store mode 2025-05-18 08:24:06 +02:00
addac
Documentation
frequency
impedance-analyzer staging: iio: ad5933: Correct settling cycles encoding per datasheet 2025-06-27 11:08:50 +01:00
resolver
Kconfig
Makefile
TODO