iio: adc: stm32-dfsdm: fix triggered buffer build dependency
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 15 Apr 2019 13:00:51 +0000 (15:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 22 Apr 2019 10:34:15 +0000 (11:34 +0100)
This fixes build errors seen when CONFIG_STM32_DFSDM_ADC is set, as
stm32-dfsdm-adc driver now also relies on triggered buffer API:

Fixes: 11646e81d775 ("iio: adc: stm32-dfsdm: add support for buffer modes")
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig

index 28965093ce28dabbb4385fd71defbb34a8717fab..2036eca546fd1f85df8e9d2925fad503a3f1d433 100644 (file)
@@ -823,6 +823,7 @@ config STM32_DFSDM_ADC
        select REGMAP_MMIO
        select IIO_BUFFER
        select IIO_BUFFER_HW_CONSUMER
+       select IIO_TRIGGERED_BUFFER
        help
          Select this option to support ADCSigma delta modulator for
          STMicroelectronics STM32 digital filter for sigma delta converter.