Skip to contentSkip to conversation

iio: adc: ti-ads112c14: select triggered buffer support

PATCH In review Pengpeng Hou 2 participants 2 messages Nov 30 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: ti-ads112c14: select triggered buffer support

The ADS112C14 buffered-read path uses the IIO triggered-buffer helpers. Continuous mode also registers and polls an IIO trigger. TI_ADS112C14 does not select either buffer support or the triggered-buffer provider, so configurations without another IIO driver enabling them cannot build the driver.

Select IIO_BUFFER and IIO_TRIGGERED_BUFFER. The latter also selects the trigger and kfifo support used by these paths.

The issue was found by our static-analysis tool and manually reviewed.

Fixes 31640de34d5a ("iio: adc: ti-ads112c14: add support for buffered read")
Fixes 3e274d73aada ("iio: adc: ti-ads112c14: add continuous mode support")

---
AI assistance: gpt 5 (patch preparation and review).

 drivers/iio/adc/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/adc/Kconfig +2 -0
index a802d8e..29db3da 100644
@@ -1881,6 +1881,8 @@ config TI_ADS112C14
 	depends on I2C
 	select CRC8
 	select REGMAP
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	  If you say yes here you get support for Texas Instruments ADS112C14,
 	  ADS122C14 ADC chips.

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244

Tested-by Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Pengpeng Hou

The ADS112C14 buffered-read path uses the IIO triggered-buffer helpers. Continuous mode also registers and polls an IIO trigger. TI_ADS112C14 does not select either buffer support or the triggered-buffer provider, so configurations without another IIO driver enabling them cannot build the driver.

Select IIO_BUFFER and IIO_TRIGGERED_BUFFER. The latter also selects the trigger and kfifo support used by these paths.

Quoted 6 lines

The issue was found by our static-analysis tool and manually reviewed.

Fixes 31640de34d5a ("iio: adc: ti-ads112c14: add support for buffered read")
Fixes 3e274d73aada ("iio: adc: ti-ads112c14: add continuous mode support")

---

Signature · 2 lines
Kind regards,
Joshua Crofts