]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iio: adc: dln2-adc: fix build error
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 7 Oct 2017 23:53:20 +0000 (16:53 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Oct 2017 10:42:00 +0000 (11:42 +0100)
The dln2-adc driver uses interface(s) that are controlled by the
IIO_TRIGGERED_BUFFER Kconfig symbol, so the driver needs to select
that symbol to prevent the build error.

drivers/iio/adc/dln2-adc.o: In function `dln2_adc_probe':
dln2-adc.c:(.text+0x528): undefined reference to `devm_iio_triggered_buffer_setup'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio@vger.kernel.org
Cc: Jack Andersen <jackoalan@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig

index 57625653fcb6da69c67fbe381f7ac3e805adcf4f..1d13bf03c75863e745623260cae2cef71f012130 100644 (file)
@@ -243,6 +243,8 @@ config DA9150_GPADC
 config DLN2_ADC
        tristate "Diolan DLN-2 ADC driver support"
        depends on MFD_DLN2
+       select IIO_BUFFER
+       select IIO_TRIGGERED_BUFFER
        help
          Say yes here to build support for Diolan DLN-2 ADC.