mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
staging:iio:ad7298: Fix linker error due to missing IIO kfifo buffer
The ad7298 drivers buffer implementation uses the IIO kfifo buffer, so it needs to select IIO_KFIFO_BUF. Otherwise (if no other driver selects the symbol) the following linker error will occur: drivers/built-in.o: In function `ad7298_register_ring_funcs_and_init': (.text+0x245cf2): undefined reference to `iio_kfifo_allocate' drivers/built-in.o: In function `ad7298_register_ring_funcs_and_init': (.text+0x245d7d): undefined reference to `iio_kfifo_free' drivers/built-in.o: In function `ad7298_ring_cleanup': (.text+0x245dcd): undefined reference to `iio_kfifo_free' Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Reported-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1b8487368b
commit
33735a94af
@ -13,6 +13,7 @@ config AD7291
|
|||||||
config AD7298
|
config AD7298
|
||||||
tristate "Analog Devices AD7298 ADC driver"
|
tristate "Analog Devices AD7298 ADC driver"
|
||||||
depends on SPI
|
depends on SPI
|
||||||
|
select IIO_KFIFO_BUF if IIO_BUFFER
|
||||||
help
|
help
|
||||||
Say yes here to build support for Analog Devices AD7298
|
Say yes here to build support for Analog Devices AD7298
|
||||||
8 Channel ADC with temperature sensor.
|
8 Channel ADC with temperature sensor.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user