mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: jic23@kernel.org
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
	songqiang1304521@gmail.com, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org, hppiscas@163.com
Subject: [PATCH] iio: proximity: vl53l0x: select triggered buffer support
Date: Mon, 30 Nov 2026 20:38:55 +0800	[thread overview]
Message-ID: <20261130123855.73520-1-hppiscas@163.com> (raw)

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


                 reply	other threads:[~2026-11-30 12:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130123855.73520-1-hppiscas@163.com \
    --to=hppiscas@163.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=songqiang1304521@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®