Skip to content

Commit 5151b4a

Browse files
rddunlapjic23
authored andcommitted
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>
1 parent be94a6f commit 5151b4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/iio/adc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ config DA9150_GPADC
243243
config DLN2_ADC
244244
tristate "Diolan DLN-2 ADC driver support"
245245
depends on MFD_DLN2
246+
select IIO_BUFFER
247+
select IIO_TRIGGERED_BUFFER
246248
help
247249
Say yes here to build support for Diolan DLN-2 ADC.
248250

0 commit comments

Comments
 (0)