mirror-linux/drivers/iio/adc
David Lechner 24fa69894e iio: adc: ad7380: fix adi,gain-milli property parsing
Change the data type of the "adi,gain-milli" property from u32 to u16.
The devicetree binding specifies it as uint16, so we need to read it as
such to avoid an -EOVERFLOW error when parsing the property.

Fixes: c904e6dcf4 ("iio: adc: ad7380: add support for adaq4370-4 and adaq4380-4")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250619-iio-adc-ad7380-fix-adi-gain-milli-parsing-v1-1-4c27fb426860@baylibre.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-06-29 17:15:40 +01:00
..
Kconfig IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
Makefile iio: adc: add support for Nuvoton NCT7201 2025-05-21 14:22:32 +01:00
ab8500-gpadc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ad799x.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
ad4000.c iio: adc: ad4000: Avoid potential double data word read 2025-05-21 14:20:30 +01:00
ad4030.c iio: adc: ad4030: remove bits_per_word = 8 2025-05-21 14:20:30 +01:00
ad4130.c iio: adc: ad4130: use new GPIO line value setter callbacks 2025-04-22 19:10:02 +01:00
ad4695.c iio: adc: ad4695: rename AD4695_MAX_VIN_CHANNELS 2025-05-21 14:20:31 +01:00
ad4851.c iio: adc: ad4851: fix ad4858 chan pointer handling 2025-05-11 14:12:49 +01:00
ad7091r-base.c iio: adc: ad7091r-base: Remove duplicate code on volatile reg check 2025-05-21 14:20:29 +01:00
ad7091r-base.h
ad7091r5.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7091r8.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7124.c iio: adc: ad7124: Make register naming consistent 2025-04-22 19:09:58 +01:00
ad7173.c iio: adc: ad7173: fix compiling without gpiolib 2025-05-04 15:39:51 +01:00
ad7191.c iio: adc: ad7191: add AD7191 2025-03-11 19:08:56 +00:00
ad7192.c IIO: New device support, features and cleanup for the 6.15 cycle. 2025-03-14 07:15:12 +01:00
ad7266.c IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
ad7280a.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
ad7291.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ad7292.c
ad7298.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ad7380.c iio: adc: ad7380: fix adi,gain-milli property parsing 2025-06-29 17:15:40 +01:00
ad7476.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ad7606.c IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
ad7606.h iio: adc: ad7606: explicit timestamp alignment 2025-05-21 14:20:29 +01:00
ad7606_bus_iface.h iio: adc: adi-axi-adc: add platform children support 2025-02-11 19:56:25 +00:00
ad7606_par.c iio: adc: ad7606_par: add ad7606c chips 2025-04-22 19:09:54 +01:00
ad7606_spi.c IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
ad7625.c iio: adc: ad7625: Stop using iio_device_claim_direct_scoped() 2025-02-17 13:01:43 +00:00
ad7766.c
ad7768-1.c IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
ad7779.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ad7780.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7791.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
ad7793.c iio: adc: ad7793: Switch to sparse friendly iio_device_claim/release_direct() 2025-03-04 13:17:49 +00:00
ad7887.c iio: adc: Switch to sparse friendly iio_device_claim/release_direct() 2025-03-04 13:17:50 +00:00
ad7923.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ad7944.c IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
ad7949.c iio: adc: ad7949: use spi_is_bpw_supported() 2025-06-29 17:15:39 +01:00
ad9467.c iio: adc: ad9467: Stop using iio_device_claim_direct_scoped() 2025-02-17 13:01:55 +00:00
ad_sigma_delta.c iio: adc: ad_sigma_delta: Fix use of uninitialized status_pos 2025-04-22 19:10:04 +01:00
adi-axi-adc.c iio: adc: adi-axi-adc: fix ad7606_bus_reg_read() 2025-06-29 17:15:39 +01:00
aspeed_adc.c
at91-sama5d2_adc.c iio: adc: at91-sama5d2: use IIO_DECLARE_BUFFER_WITH_TS 2025-05-21 14:20:32 +01:00
at91_adc.c iio: adc: at91: call input_free_device() on allocated iio_dev 2024-12-07 17:28:39 +00:00
axp20x_adc.c iio: adc: axp20x_adc: Add missing sentinel to AXP717 ADC channel maps 2025-06-29 17:15:39 +01:00
axp288_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
bcm_iproc_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
berlin2-adc.c
cc10001_adc.c
cpcap-adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
da9150-gpadc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
dln2-adc.c IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
envelope-detector.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
ep93xx_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
exynos_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
fsl-imx25-gcq.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
gehc-pmc-adc.c
hi8435.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
hx711.c iio: adc: hx711: use struct with aligned_s64 timestamp 2025-05-21 14:20:27 +01:00
imx7d_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
imx8qxp-adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
imx93_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
ina2xx-adc.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
industrialio-adc.c iio: adc: add helpers for parsing ADC nodes 2025-04-22 19:09:52 +01:00
ingenic-adc.c
intel_mrfld_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
lp8788_adc.c
lpc18xx_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
lpc32xx_adc.c
ltc2309.c
ltc2471.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
ltc2485.c
ltc2496.c
ltc2497-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ltc2497.c
ltc2497.h module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max1027.c iio: adc: max1027: Switch to sparse friendly iio_device_claim/release_direct() 2025-03-04 13:17:50 +00:00
max1118.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
max1241.c
max1363.c iio: adc: max1363: Reorder mode_list[] entries 2025-06-09 07:45:19 +01:00
max9611.c
max11100.c
max11205.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max11410.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
max34408.c iio: adc: Include cleanup.h when using guard() 2025-03-04 13:17:51 +00:00
max77541-adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mcp320x.c
mcp3422.c
mcp3564.c
mcp3911.c iio: adc: mcp3911: add reset management 2025-05-21 14:20:30 +01:00
men_z188_adc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
meson_saradc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mp2629_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
mt6359-auxadc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mt6360-adc.c iio: adc: mt6360-adc: use aligned_s64 for timestamp 2025-05-21 14:20:27 +01:00
mt6370-adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mt6577_auxadc.c
mxs-lradc-adc.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
nau7802.c
nct7201.c iio: adc: add support for Nuvoton NCT7201 2025-05-21 14:22:32 +01:00
npcm_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
pac1921.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
pac1934.c iio: adc: PAC1934: fix typo in documentation link 2025-05-21 14:20:28 +01:00
palmas_gpadc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
qcom-pm8xxx-xoadc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
qcom-spmi-adc5.c
qcom-spmi-iadc.c iio: adc: qcom-spmi-iadc: Fix wakeup source leaks on device unbind 2025-04-12 12:24:00 +01:00
qcom-spmi-rradc.c mailmap: update and consolidate Casey Connolly's name and email 2025-05-21 10:48:24 -07:00
qcom-spmi-vadc.c
qcom-vadc-common.c
rcar-gyroadc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
rn5t618-adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
rockchip_saradc.c IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
rohm-bd79124.c iio: bd79124: Use set_rv and set_multiple_rv 2025-04-22 19:10:02 +01:00
rtq6056.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
rzg2l_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
sc27xx_adc.c
sd_adc_modulator.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sophgo-cv1800b-adc.c
spear_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
stm32-adc-core.c iio: adc: stm32-adc: Fix race in installing chained IRQ handler 2025-06-09 07:45:19 +01:00
stm32-adc-core.h iio: adc: stm32: add oversampling support 2025-05-21 14:20:28 +01:00
stm32-adc.c iio: adc: stm32: add oversampling support 2025-05-21 14:20:28 +01:00
stm32-dfsdm-adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
stm32-dfsdm-core.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
stm32-dfsdm.h
stmpe-adc.c
sun4i-gpadc-iio.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
sun20i-gpadc-iio.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
ti-adc081c.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-adc084s021.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-adc108s102.c iio: adc: Switch to sparse friendly iio_device_claim/release_direct() 2025-03-04 13:17:50 +00:00
ti-adc128s052.c iio: ti-adc128s052: Drop variable vref 2025-05-21 14:20:30 +01:00
ti-adc161s626.c iio: adc: ti-adc161s626: Stop using iio_device_claim_direct_scoped() 2025-02-17 13:02:16 +00:00
ti-adc0832.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-adc12138.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-ads124s08.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-ads131e08.c iio: adc: ti-ads131e08: Use new iio_push_to_buffers_with_ts() to provide length sanity check. 2025-05-21 14:20:26 +01:00
ti-ads1015.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-ads1100.c iio: adc: ti-ads1100: Switch to sparse friendly iio_device_claim/release_direct() 2025-04-22 19:09:55 +01:00
ti-ads1119.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-ads1298.c iio: adc: Switch to sparse friendly iio_device_claim/release_direct() 2025-03-04 13:17:50 +00:00
ti-ads7138.c iio: adc: Add driver for ADS7128 / ADS7138 2025-02-16 15:52:22 +00:00
ti-ads7924.c iio: adc: ti-ads7924 Drop unnecessary function parameters 2025-03-11 19:09:17 +00:00
ti-ads7950.c iio: adc: ti-ads7950: use new GPIO line value setter callbacks 2025-04-22 19:10:02 +01:00
ti-ads8344.c
ti-ads8688.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-lmp92064.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-tlc4541.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ti-tsc2046.c iio: adc: ti-tsc2046: remove bits_per_word = 8 2025-05-21 14:20:30 +01:00
ti_am335x_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
twl4030-madc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
twl6030-gpadc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
vf610_adc.c iio: adc: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
viperboard_adc.c
xilinx-ams.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
xilinx-xadc-core.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
xilinx-xadc-events.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
xilinx-xadc.h iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00