linux/drivers/staging
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
..
axis-fifo staging: axis-fifo: Correct handling of tx_fifo_depth for size validation 2025-05-18 08:24:51 +02:00
fbtft staging: fbtft: Use backlight power constants 2024-08-13 11:26:12 +02:00
fieldbus driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
gdm724x staging: gdm724x: constantify the struct device_type usage 2024-02-17 17:30:35 +01:00
greybus Revert "staging: greybus: Fix capitalization and punctuation inconsistencies" 2024-09-11 15:56:26 +02:00
iio staging: iio: ad5933: Correct settling cycles encoding per datasheet 2025-06-27 11:11:23 +01:00
media media: rkvdec: Fix frame size enumeration 2025-06-19 15:31:34 +02:00
most staging: most: video: Fixed minor capitalization and grammatical issues 2024-07-30 09:20:26 +02:00
nvec staging: nvec: Use IRQF_NO_AUTOEN flag in request_irq() 2024-09-13 07:30:23 +02:00
octeon netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
olpc_dcon staging: olpc_dcon: Use backlight power constants 2024-08-13 11:26:13 +02:00
rtl8192e move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
rtl8712 staging: rtl8712: remove unused drvinfo_sz from update_recvframe_attrib 2024-09-13 07:31:55 +02:00
rtl8723bs staging: rtl8723bs: select CONFIG_CRYPTO_LIB_AES 2025-04-10 14:39:25 +02:00
rts5208 Staging driver changes for 6.10-rc1 2024-05-22 12:11:48 -07:00
sm750fb video/nomodeset: Select nomodeset= parameter with CONFIG_VIDEO 2024-01-23 10:11:38 +01:00
vc04_services staging: vchiq_arm: Create keep-alive thread during probe 2025-05-29 11:02:09 +02:00
vme_user staging: vme_user: changed geoid data type from int to u32 2024-09-05 16:45:01 +02:00
vt6655 staging: vt6655: Rename variable apTD1Rings 2024-09-13 07:32:50 +02:00
vt6656 Staging driver updates for 6.11-rc1 2024-07-19 15:46:29 -07:00
Kconfig staging: ks7010: Remove unused driver 2024-07-30 09:21:00 +02:00
Makefile staging: ks7010: Remove unused driver 2024-07-30 09:21:00 +02:00