* [PATCH] iio: light: vl6180: select triggered buffer support
@ 2026-11-30 12:39 Pengpeng Hou
0 siblings, 0 replies; only message in thread
From: Pengpeng Hou @ 2026-11-30 12:39 UTC (permalink / raw)
To: jic23; +Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel, hppiscas
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@163.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-30 12:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 12:39 [PATCH] iio: light: vl6180: select triggered buffer support Pengpeng Hou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®