* [PATCH] iio: light: vl6180: select triggered buffer support
@ 2026-11-30 12:39 Pengpeng Hou
2026-11-30 15:29 ` Joshua Crofts
0 siblings, 1 reply; 2+ messages 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 related [flat|nested] 2+ messages in thread* Re: [PATCH] iio: light: vl6180: select triggered buffer support
2026-11-30 12:39 [PATCH] iio: light: vl6180: select triggered buffer support Pengpeng Hou
@ 2026-11-30 15:29 ` Joshua Crofts
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Crofts @ 2026-11-30 15:29 UTC (permalink / raw)
To: Pengpeng Hou, jic23; +Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel
On 30-Nov-26 13:39, Pengpeng Hou wrote:
> 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>
> ---
Tested-by: Joshua Crofts <crofts@kernel.org>
Reviewed-by: Joshua Crofts <crofts@kernel.org>
--
Kind regards,
Joshua Crofts
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 15:29 UTC | newest]
Thread overview: 2+ messages (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
2026-11-30 15:29 ` Joshua Crofts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox