linux/drivers/staging
Gabriel Shahrouzi 60638e2a2d staging: iio: ad5933: Correct settling cycles encoding per datasheet
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>
History 2025-05-21 14:20:28 +01:00
..
axis-fifo staging: Switch back to struct platform_driver::remove() 2024-10-09 11:54:53 +02:00
fbtft fbtft: Remove access to page->index 2025-03-05 08:38:21 +01:00
gpib treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
greybus tty: staging/greybus: pass tty_driver flags to tty_alloc_driver() 2025-03-20 08:00:51 -07:00
iio staging: iio: ad5933: Correct settling cycles encoding per datasheet 2025-05-21 14:20:28 +01:00
media treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
most staging: most: Remove TODO contact information 2024-11-10 08:03:31 +01:00
nvec staging: Switch back to struct platform_driver::remove() 2024-10-09 11:54:53 +02:00
octeon staging: Switch back to struct platform_driver::remove() 2024-10-09 11:54:53 +02:00
rtl8723bs treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
sm750fb staging: sm750fb: fix checkpatch warning architecture specific defines should be avoided 2025-02-19 16:54:06 +01:00
vc04_services staging: vchiq_arm: Improve initial VCHIQ connect 2025-03-20 07:11:21 -07:00
vme_user staging: vme_user: vme_tsi148.c: avoid parenthesis line ending 2024-12-29 11:33:11 +01:00
Kconfig staging: fieldbus: Delete unused driver 2024-11-04 00:53:07 +01:00
Makefile staging: fieldbus: Delete unused driver 2024-11-04 00:53:07 +01:00