On Tue, 10 Jan 2023 14:43:20 +0100 Mårten Lindahl <marten.lindahl@xxxxxxxx> wrote: > Hi! > > I have made three patches to add support for proximity sensor > interrupts with the vcnl4040 sensor. > > The first two patches are minor restructuring of the current setup for > interrupts since the probe function hardcodes it for vcnl4010 only. > > The third patch adds support to configure proximity sensor interrupts > and threshold limits for vcnl4040. > > Kind regards > Mårten Lindahl Series applied to the togreg branch of iio.git. Initially pushed out as testing so that the bots can take a poke at it before I make a mess of Linux next if we missed something. Thanks, Jonathan > > Changes in v3: > - Only register iio_trigger when there is an irq_thread function > > Changes in v2: > - Make restructure of functions for interrupts and triggered buffer > in separate patch > - Add check for buffer_setup_ops > - Remove irq dependency for devm_iio_triggered_buffer_setup > - Change size of register variable and document it > - Use field definitions for read/write event_config > > Mårten Lindahl (3): > iio: light: vcnl4000: Prepare for more generic setup > iio: light: vcnl4000: Make irq handling more generic > iio: light: vcnl4000: Add interrupt support for vcnl4040 > > drivers/iio/light/vcnl4000.c | 479 ++++++++++++++++++++++++----------- > 1 file changed, 328 insertions(+), 151 deletions(-) >