Skip to content

Commit 0a686b9

Browse files
nathanchancejic23
authored andcommitted
iio: adc: ad_sigma_delta: Select IIO_BUFFER_DMAENGINE and SPI_OFFLOAD
CONFIG_AD_SIGMA_DELTA uses several symbols that it does not explicitly select. If no other enabled driver selects them, the build fails with either a linker failure if the driver is built in or a modpost failure if the driver is a module. ld.lld: error: undefined symbol: devm_spi_offload_rx_stream_request_dma_chan ld.lld: error: undefined symbol: devm_iio_dmaengine_buffer_setup_with_handle ld.lld: error: undefined symbol: devm_spi_offload_trigger_get ld.lld: error: undefined symbol: devm_spi_offload_get ld.lld: error: undefined symbol: spi_offload_trigger_enable ld.lld: error: undefined symbol: spi_offload_trigger_disable Select the necessary Kconfig symbols to include these functions in the build to clear up the errors. Fixes: 219da3e ("iio: adc: ad_sigma_delta: add SPI offload support") Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: David Lechner <[email protected]> Link: https://patch.msgid.link/20250714-iio-ad_sigma_delta-fix-kconfig-selects-v1-1-32e0d6da0423@kernel.org Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 6fa908a commit 0a686b9

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
@@ -22,7 +22,9 @@ config AB8500_GPADC
2222
config AD_SIGMA_DELTA
2323
tristate
2424
select IIO_BUFFER
25+
select IIO_BUFFER_DMAENGINE
2526
select IIO_TRIGGERED_BUFFER
27+
select SPI_OFFLOAD
2628

2729
config AD4000
2830
tristate "Analog Devices AD4000 ADC Driver"

0 commit comments

Comments
 (0)