Skip to content

Commit e3ea419

Browse files
mwallejic23
authored andcommitted
iio: adc: rockchip_saradc: select IIO_TRIGGERED_BUFFER
The kernel fails to compile due to undefined reference to devm_iio_triggered_buffer_setup() if IIO_TRIGGERED_BUFFER is not enabled. The original patch [1] had this dependency. But somehow it didn't make it into the kernel tree. Re-add it. [1] https://lore.kernel.org/lkml/[email protected]/ Fixes: 4e130dc ("iio: adc: rockchip_saradc: Add support iio buffers") Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Heiko Stuebner <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent e71e6db commit e3ea419

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
@@ -865,6 +865,8 @@ config ROCKCHIP_SARADC
865865
tristate "Rockchip SARADC driver"
866866
depends on ARCH_ROCKCHIP || (ARM && COMPILE_TEST)
867867
depends on RESET_CONTROLLER
868+
select IIO_BUFFER
869+
select IIO_TRIGGERED_BUFFER
868870
help
869871
Say yes here to build support for the SARADC found in SoCs from
870872
Rockchip.

0 commit comments

Comments
 (0)