mbox series

[v2,0/3] iio: light: vcnl4000: Add vcnl4040 interrupt support

Message ID 20230109122728.118199-1-marten.lindahl@axis.com (mailing list archive)
Headers show
Series iio: light: vcnl4000: Add vcnl4040 interrupt support | expand

Message

Mårten Lindahl Jan. 9, 2023, 12:27 p.m. UTC
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

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 | 471 ++++++++++++++++++++++++-----------
 1 file changed, 324 insertions(+), 147 deletions(-)