[PATCH] iio: accel: adxl313: add missing buffer selections in Kconfig

From: Alexis Bouzigues via B4 Relay

Date: Tue Oct 06 2026 - 20:09:13 EST


From: Alexis Bouzigues <BouziguesAlexis@xxxxxxxxxxxxx>

The FIFO support added to the ADXL313 core uses
devm_iio_kfifo_buffer_setup() and iio_push_to_buffers(), but its Kconfig
entry does not select the required buffer support. Enabling either
frontend without IIO_BUFFER or IIO_KFIFO_BUF causes undefined references
to devm_iio_kfifo_buffer_setup_ext() and iio_push_to_buffers().

Select IIO_BUFFER and IIO_KFIFO_BUF from the shared ADXL313 core symbol
so both the I2C and SPI frontends have the required dependencies.

Fixes: ff8093fa6ba4 ("iio: accel: adxl313: add buffered FIFO watermark with interrupt handling")
Cc: stable@xxxxxxxxxxxxxxx
Assisted-by: LLM
Signed-off-by: Alexis Bouzigues <BouziguesAlexis@xxxxxxxxxxxxx>
---
Add the buffer selections required by the ADXL313 FIFO support.
The shared core symbol covers both I2C and SPI frontends.
---
drivers/iio/accel/Kconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index 4094299e2ed8..7b5c1ce66e95 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -32,6 +32,8 @@ config ADIS16209

config ADXL313
tristate
+ select IIO_BUFFER
+ select IIO_KFIFO_BUF

config ADXL313_I2C
tristate "Analog Devices ADXL313 3-Axis Digital Accelerometer I2C Driver"

---
base-commit: 69f80fef3153299d9c72c53d1d71eef6354b6926
change-id: 20261006-fix-adxl313-buffer-deps-review-73bb575e1e39

Best regards,
--
Alexis Bouzigues <BouziguesAlexis@xxxxxxxxxxxxx>