Skip to contentSkip to conversation

iio: adc: select buffer for at91-sama5d2_adc

PATCH Applied Eugen Hristev 2 participants 2 messages Apr 16, 2018 – Apr 21, 2018 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: select buffer for at91-sama5d2_adc

We need to select the buffer code, otherwise we get build errors with undefined functions on the trigger and buffer,
if we select just IIO and then AT91_SAMA5D2_ADC from menuconfig

This adds a Kconfig 'select' statement like other ADC drivers have it already.

Fixes 5e1a1da0f8c9 ("iio: adc: at91-sama5d2_adc: add hw trigger and buffer support")

---
Hello Jonathan,

While you are at it, I also found this small kconfig issue during my tests. Would be good to have as a fix as well.

Thanks,
Eugen

 drivers/iio/adc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/Kconfig +1 -0
index 15606f2..9da7907 100644
@@ -158,6 +158,7 @@ config AT91_SAMA5D2_ADC
 	depends on ARCH_AT91 || COMPILE_TEST
 	depends on HAS_IOMEM
 	depends on HAS_DMA
+	select IIO_BUFFER
 	select IIO_TRIGGERED_BUFFER
 	help
 	  Say yes here to build support for Atmel SAMA5D2 ADC which is
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 9 lines · On Mon, 16 Apr 2018 09:54:03 +0300 Eugen Hristev <[email protected]>…

We need to select the buffer code, otherwise we get build errors with undefined functions on the trigger and buffer,
if we select just IIO and then AT91_SAMA5D2_ADC from menuconfig

This adds a Kconfig 'select' statement like other ADC drivers have it already.

Fixes 5e1a1da0f8c9 ("iio: adc: at91-sama5d2_adc: add hw trigger and buffer support")

Applied to the fixes-togreg branch of iio.git and marked for stable.

Thanks,

Jonathan

Quoted 24 lines

---
Hello Jonathan,

While you are at it, I also found this small kconfig issue during my tests. Would be good to have as a fix as well.

Thanks,
Eugen

 drivers/iio/adc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/Kconfig +1 -0
index 15606f2..9da7907 100644
@@ -158,6 +158,7 @@ config AT91_SAMA5D2_ADC
 	depends on ARCH_AT91 || COMPILE_TEST
 	depends on HAS_IOMEM
 	depends on HAS_DMA
+	select IIO_BUFFER
 	select IIO_TRIGGERED_BUFFER
 	help
 	  Say yes here to build support for Atmel SAMA5D2 ADC which is