* [PATCH] iio: proximity: vl53l0x: select triggered buffer support
@ 2026-11-30 12:38 Pengpeng Hou
2026-11-30 15:26 ` Joshua Crofts
0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-11-30 12:38 UTC (permalink / raw)
To: jic23
Cc: dlechner, nuno.sa, andy, songqiang1304521, linux-iio,
linux-kernel, hppiscas
The VL53L0X interrupt and continuous-mode paths register and poll an
IIO trigger and set up a triggered buffer. VL53L0X_I2C does not
select those facilities, so enabling this driver without another IIO
buffer consumer can leave the trigger types and interfaces
unavailable during compilation.
Select IIO_BUFFER and IIO_TRIGGERED_BUFFER to provide the complete
buffer and trigger infrastructure used by the driver.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 762186c6e7b1 ("iio: proximity: vl53l0x-i2c: Added continuous mode support")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/iio/proximity/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig
index bb77fad..0793a53 100644
--- a/drivers/iio/proximity/Kconfig
+++ b/drivers/iio/proximity/Kconfig
@@ -236,6 +236,8 @@ config VCNL3020
config VL53L0X_I2C
tristate "STMicroelectronics VL53L0X ToF ranger sensor (I2C)"
depends on I2C
+ select IIO_BUFFER
+ select IIO_TRIGGERED_BUFFER
help
Say Y here to build a driver for STMicroelectronics VL53L0X
ToF ranger sensors with i2c interface.
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: proximity: vl53l0x: select triggered buffer support
2026-11-30 12:38 [PATCH] iio: proximity: vl53l0x: select triggered buffer support Pengpeng Hou
@ 2026-11-30 15:26 ` Joshua Crofts
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Crofts @ 2026-11-30 15:26 UTC (permalink / raw)
To: Pengpeng Hou, jic23
Cc: dlechner, nuno.sa, andy, songqiang1304521, linux-iio, linux-kernel
On 30-Nov-26 13:38, Pengpeng Hou wrote:
> The VL53L0X interrupt and continuous-mode paths register and poll an
> IIO trigger and set up a triggered buffer. VL53L0X_I2C does not
> select those facilities, so enabling this driver without another IIO
> buffer consumer can leave the trigger types and interfaces
> unavailable during compilation.
>
> Select IIO_BUFFER and IIO_TRIGGERED_BUFFER to provide the complete
> buffer and trigger infrastructure used by the driver.
>
> The issue was found by our static-analysis tool and manually reviewed.
>
> Fixes: 762186c6e7b1 ("iio: proximity: vl53l0x-i2c: Added continuous mode support")
> 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:26 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:38 [PATCH] iio: proximity: vl53l0x: select triggered buffer support Pengpeng Hou
2026-11-30 15:26 ` Joshua Crofts
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®