[PATCH] iio: light: vl6180: select triggered buffer support
From: Pengpeng Hou
Date: Mon Nov 30 2026 - 07:40:25 EST
The VL6180 continuous-mode implementation registers and polls an IIO
trigger and uses the triggered-buffer helpers, but VL6180 does not
select the corresponding support. The driver cannot be built when
the trigger infrastructure is absent, and buffer helpers also need a
matching provider.
Select IIO_BUFFER and IIO_TRIGGERED_BUFFER instead of relying on
other drivers to enable them.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: eeebe3937cfc ("iio: light: vl6180: Add support for Continuous Mode")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/iio/light/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
index 462fff1..b8e6ac1 100644
--- a/drivers/iio/light/Kconfig
+++ b/drivers/iio/light/Kconfig
@@ -803,6 +803,8 @@ config VEML6075
config VL6180
tristate "VL6180 ALS, range and proximity sensor"
depends on I2C
+ select IIO_BUFFER
+ select IIO_TRIGGERED_BUFFER
help
Say Y here if you want to build a driver for the STMicroelectronics
VL6180 combined ambient light, range and proximity sensor.
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244