Skip to contentSkip to conversation

iio: light: vl6180: select triggered buffer support

PATCH In review Pengpeng Hou 2 participants 2 messages Nov 30 IIO

lore
Share & tools
lore
#0 lore raw

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.

Fixes eeebe3937cfc ("iio: light: vl6180: Add support for Continuous Mode")

---
AI assistance: gpt 5 (patch preparation and review).

 drivers/iio/light/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/light/Kconfig +2 -0
index 462fff1..b8e6ac1 100644
@@ -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

Tested-by Reviewed-by on v1 1/1
#1 lore raw
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_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")

---

Signature · 2 lines
Kind regards,
Joshua Crofts