iio: light: vl6180: select triggered buffer support
PATCH 1/1 iio: light: vl6180: select triggered buffer support
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.
---
AI assistance: gpt 5 (patch preparation and review).
drivers/iio/light/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
drivers/iio/light/Kconfig +2 -0
@@ -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
Quoted 6 lines · Pengpeng Hou
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.
Quoted 8 lines
Select
IIO_BUFFERandIIO_TRIGGERED_BUFFERinstead 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 <[email protected]>---
Signature · 2 lines
Kind regards, Joshua Crofts