diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2017-10-07 19:53:20 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-10-08 06:42:00 -0400 |
commit | 5151b4afb41dd7c5e13a130efcc95326a49da8c6 (patch) | |
tree | 17d6728305f6d964572555f8ab2b4d83bbe2e771 | |
parent | be94a6f6d488b4767662e8949dc62361bd1d6311 (diff) |
iio: adc: dln2-adc: fix build error
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>
-rw-r--r-- | drivers/iio/adc/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 57625653fcb6..1d13bf03c758 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig | |||
@@ -243,6 +243,8 @@ config DA9150_GPADC | |||
243 | config DLN2_ADC | 243 | config DLN2_ADC |
244 | tristate "Diolan DLN-2 ADC driver support" | 244 | tristate "Diolan DLN-2 ADC driver support" |
245 | depends on MFD_DLN2 | 245 | depends on MFD_DLN2 |
246 | select IIO_BUFFER | ||
247 | select IIO_TRIGGERED_BUFFER | ||
246 | help | 248 | help |
247 | Say yes here to build support for Diolan DLN-2 ADC. | 249 | Say yes here to build support for Diolan DLN-2 ADC. |
248 | 250 | ||