Re: [PATCH] iio: accel: adxl345: select IIO_BUFFER and IIO_KFIFO_BUF

From: Joshua Crofts

Date: Thu Oct 08 2026 - 03:33:32 EST


On Wed, 07 Oct 2026 09:34:16 -0500
Alexis Bouzigues via B4 Relay <devnull+BouziguesAlexis.JohnDeere.com@xxxxxxxxxx> wrote:

> From: Alexis Bouzigues <BouziguesAlexis@xxxxxxxxxxxxx>
>
> Since the addition of FIFO watermark support, adxl345_core.c calls
> devm_iio_kfifo_buffer_setup() and iio_push_to_buffers(), but the
> ADXL345 Kconfig entry does not select IIO_BUFFER and IIO_KFIFO_BUF.
> Building with CONFIG_ADXL345_I2C=y and CONFIG_IIO_BUFFER=n fails to
> link:
>
> ld: drivers/iio/accel/adxl345_core.o: in function `adxl345_irq_handler':
> adxl345_core.c:(.text+0x145c): undefined reference to `iio_push_to_buffers'
> ld: drivers/iio/accel/adxl345_core.o: in function `adxl345_core_probe':
> adxl345_core.c:(.text+0x1db6): undefined reference to `devm_iio_kfifo_buffer_setup_ext'
>
> Add the missing selects on the hidden ADXL345 core symbol, as done for
> ADXL367, ADXL372 and ADXL380, so both the I2C and SPI front-ends are
> covered.
>
> Fixes: cf04212d1fe7 ("iio: accel: adxl345: add FIFO with watermark events")
> Assisted-by: LLM
> Signed-off-by: Alexis Bouzigues <BouziguesAlexis@xxxxxxxxxxxxx>
> ---

Tested-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>

--
Kind regards,
Joshua Crofts