linux/drivers/iio/adc
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
88pm886-gpadc.c iio: adc: make read-only const array config static 2026-07-20 02:43:15 +01:00
ab8500-gpadc.c iio: adc: Remove redundant pm_runtime_mark_last_busy() calls 2025-08-25 15:57:14 +01:00
ad_sigma_delta.c iio: adc: ad_sigma_delta: fix clear_pending_event for registerless devices 2026-05-29 09:57:23 +01:00
ad799x.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
ad4000.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ad4030.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad4062.c iio: adc: ad4062: use dev_err_probe() 2026-04-27 09:58:18 +01:00
ad4080.c IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
ad4130.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad4134.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ad4170-4.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad4691.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ad4695.c iio: adc: ad4695: Fix call ordering in offload buffer postenable 2026-04-28 16:36:09 +01:00
ad4851.c Linux 7.2-rc2 2026-07-06 16:59:47 +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 iio: adc: Fix typos in comments across various files 2024-10-05 12:09:15 +01:00
ad7091r5.c iio: adc: ad7091r5: Simplify driver_data handling 2026-05-31 11:01:46 +01:00
ad7091r8.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7124.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ad7173.c Char/Misc/IIO/etc driver update for 7.3-rc1 2026-08-25 09:38:50 -07:00
ad7191.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ad7192.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ad7266.c iio: Drop unused assignment of spi_device_id driver data 2026-06-30 00:15:56 +01:00
ad7280a.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
ad7291.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
ad7292.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ad7298.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ad7380.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7405.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ad7476.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +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 Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ad7606_spi.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7606.c iio: Convert IIO_CHAN_SOFT_TIMESTAMP() to be compound literal 2026-05-31 11:01:48 +01:00
ad7606.h iio: adc: ad7606: add gain calibration support 2025-06-09 07:45:37 +01:00
ad7625.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ad7766.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7768-1.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7779.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ad7780.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7791.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7793.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7887.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7923.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7944.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad7949.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ad9467.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ade9000.c iio: adc: ade9000: Drop incorrect kerneldoc marker 2026-07-06 00:37:38 +01:00
adi-axi-adc.c IIO: 2nd set of fixes for the 7.2 cycle. 2026-08-19 09:43:39 +02:00
aspeed_adc.c Linux 7.0-rc7 2026-04-06 09:04:53 +02:00
at91_adc.c iio: adc: at91_adc: use const char * for DT string property 2026-07-27 22:13:07 +01:00
at91-sama5d2_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
axp20x_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
axp288_adc.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
bcm_iproc_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
berlin2-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
cc10001_adc.c iio: adc: cc10001_adc: simplify timestamp channel definition 2026-05-31 11:01:49 +01:00
cpcap-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
da9150-gpadc.c iio: adc: Drop unnecessary -ENOMEM messages 2025-08-25 12:32:13 +01:00
dln2-adc.c iio: adc: dln2-adc: simplify timestamp channel definition 2026-05-31 11:01:48 +01:00
envelope-detector.c Linux 7.2-rc2 2026-07-06 16:59:47 +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: New device support, features and cleanup for the 6.20/7.0 cycle. 2026-02-02 17:08:30 +01:00
fsl-imx25-gcq.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
gehc-pmc-adc.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
hi8435.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
hx711.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
imx7d_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
imx8qxp-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
imx93_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ina2xx-adc.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
industrialio-adc.c iio: adc: add helpers for parsing ADC nodes 2025-04-22 19:09:52 +01:00
ingenic-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
intel_dc_ti_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
intel_mrfld_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
Kconfig IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
lp8788_adc.c iio: adc: Convert to IIO_MAP() 2024-09-30 09:21:02 +01:00
lpc18xx_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
lpc32xx_adc.c Android/IIO bugfixes for 7.2-rc3 2026-07-12 12:37:28 -07:00
ltc2309.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
ltc2378.c iio: adc: ltc2378: Add support for LTC2338-18 2026-08-03 22:32:33 +01:00
ltc2471.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
ltc2485.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
ltc2496.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ltc2497-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ltc2497.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ltc2497.h module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
Makefile iio: adc: ltc2378: Add support for LTC2378-20 and similar ADCs 2026-08-03 22:32:33 +01:00
max1027.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
max1118.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
max1241.c iio: adc: max1241: add missing MODULE_DEVICE_TABLE() 2026-07-05 00:57:10 +01:00
max1363.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
max9611.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
max11100.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
max11205.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
max11410.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
max14001.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
max34408.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
max77541-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
mcp320x.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
mcp3422.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
mcp3564.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
mcp3911.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
men_z188_adc.c iio: adc: fix typos found by codespell 2026-03-01 12:04:44 +00:00
meson_saradc.c iio: adc: meson-saradc: fix calibration buffer leak on error 2026-05-15 12:05:34 +01:00
mp2629_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
mt6323-auxadc.c iio: adc: mt6323: remove unused header 2026-07-13 01:32:46 +01:00
mt6359-auxadc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
mt6360-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
mt6370-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
mt6577_auxadc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
mxs-lradc-adc.c iio: adc: Drop unnecessary -ENOMEM messages 2025-08-25 12:32:13 +01:00
nau7802.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
nct7201.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
npcm_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
nxp-sar-adc.c Android/IIO bugfixes for 7.2-rc3 2026-07-12 12:37:28 -07:00
pac1921.c iio: adc: pac1921: fix wrong channel used in trigger handler read 2026-08-07 23:51:05 +01:00
pac1934.c iio: adc: pac1934: Return -ENOMEM on memory allocation failure 2026-02-23 08:24:22 +00:00
palmas_gpadc.c iio: adc: palmas_gpadc: Replace leading space indentation with tabs 2026-03-14 12:10:22 +00:00
qcom-pm8xxx-xoadc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
qcom-spmi-adc5-gen3.c iio: adc: qcom-spmi-adc5-gen3: Share SDAM0 IRQ with ADC_TM auxiliary driver 2026-08-07 17:18:44 +02:00
qcom-spmi-adc5.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
qcom-spmi-iadc.c iio: adc: qcom-spmi-iadc: balance enable_irq_wake() on driver unbind 2026-05-26 19:22:57 +01:00
qcom-spmi-rradc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
qcom-spmi-vadc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
qcom-vadc-common.c iio: adc: qcom-vadc: make scale_adc5_fn const 2025-07-06 10:37:52 +01:00
rcar-gyroadc.c iio: adc: rcar-gyroadc: remove rcar_gyroadc_set_power() helper 2026-08-03 22:32:32 +01:00
rn5t618-adc.c iio: adc: Drop unnecessary -ENOMEM messages 2025-08-25 12:32:13 +01:00
rockchip_saradc.c iio: adc: rockchip: Simplify probe() with local 'dev' 2025-12-31 17:59:26 +00:00
rohm-bd79112.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
rohm-bd79124.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
rtq6056.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
rzg2l_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
rzn1-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
rzt2h_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
sc27xx_adc.c iio: adc: sc27xx: Simplify with dev_err_probe 2025-12-21 12:03:10 +00:00
sd_adc_modulator.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
sophgo-cv1800b-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
spear_adc.c Android/IIO bugfixes for 7.2-rc3 2026-07-12 12:37:28 -07:00
stm32-adc-core.c iio: adc: fix typos found by codespell 2026-03-01 12:04:44 +00:00
stm32-adc-core.h iio: adc: stm32: add oversampling support 2025-05-21 14:20:28 +01:00
stm32-adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
stm32-dfsdm-adc.c iio: stm32-dfsdm: Treat flags as booleans 2026-06-30 00:15:53 +01:00
stm32-dfsdm-core.c iio: adc: stm32-dfsdm: Fix build warnings about export.h 2025-06-26 19:32:52 +01:00
stm32-dfsdm.h
stmpe-adc.c iio: adc: Drop unnecessary -ENOMEM messages 2025-08-25 12:32:13 +01:00
sun4i-gpadc-iio.c iio: Use named initializers for platform_device_id arrays 2026-05-31 11:01:51 +01:00
sun20i-gpadc-iio.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ti_am335x_adc.c iio: adc: add an article and use digitize instead of digitalize 2026-03-21 19:13:12 +00:00
ti-adc081c.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-adc084s021.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-adc108s102.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-adc128s052.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-adc161s626.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-adc0832.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-adc12138.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ti-ads112c14.c iio: adc: ti-ads112c14: add support for buffered read 2026-08-03 22:32:31 +01:00
ti-ads124s08.c IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
ti-ads131e08.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ti-ads131m02.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-ads1015.c iio: adc: ti-ads1015: use devm helpers to fix probe error paths 2026-07-04 00:07:34 +01:00
ti-ads1018.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-ads1100.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
ti-ads1119.c iio: adc: ti-ads1119: fix PM reference leak in buffer preenable 2026-06-29 23:24:45 +01:00
ti-ads1298.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ti-ads7138.c iio: ti-ads7138: Disable STATS_EN bit while reading conversion results 2026-08-07 23:49:34 +01:00
ti-ads7924.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
ti-ads7950.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ti-ads8344.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-ads8688.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-lmp92064.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
ti-tlc4541.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
ti-tsc2046.c iio: adc: ti-tsc2046: Simplify device handling 2026-07-01 18:38:38 +01:00
twl4030-madc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
twl6030-gpadc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
versal-sysmon-core.c iio: adc: versal-sysmon: add oversampling support 2026-07-02 16:43:51 +01:00
versal-sysmon-i2c.c iio: adc: versal-sysmon: add I2C driver 2026-07-02 16:43:51 +01:00
versal-sysmon.c iio: adc: add Versal SysMon driver 2026-07-02 16:43:51 +01:00
versal-sysmon.h iio: adc: versal-sysmon: add oversampling support 2026-07-02 16:43:51 +01:00
vf610_adc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
viperboard_adc.c iio: adc: viperboard: Fix error handling in vprbrd_iio_read_raw 2026-05-15 12:05:35 +01:00
xilinx-ams.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
xilinx-xadc-core.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02: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