[PATCH v2 0/2] iio: light: vcnl4000: support shared IRQs
From: Tsz Shan Chan
Date: Fri Aug 14 2026 - 00:31:38 EST
This series contains two changes for the vcnl4000 driver.
Patch 1 makes .num_channels match .channels for vcnl4200. vcnl4040 and
vcnl4000 channel arrays have the same size, so no functional change.
Patch 2 adds shared IRQ support. It changes the trigger type from
falling edge to low level and adds IRQF_SHARED. The IRQ handlers return
IRQ_NONE when the device did not generate the interrupt.
Signed-off-by: Tsz Shan Chan <tchan@xxxxxxxxxxxxxx>
---
Changes in v2:
- 1/2: Clarify in the commit message that the channel arrays have the
same size.
- 2/2: Drop IRQ trigger type checking and use IRQF_TRIGGER_LOW directly.
- 2/2: Check the interrupt source bits handled by the driver.
- Link to v1: https://lore.kernel.org/r/20260811-vcnl4000-v1-0-50e7fb657692@xxxxxxxxxxxxxx
---
Tsz Shan Chan (2):
iio: light: vcnl4000: use correct channel array size
iio: light: vcnl4000: add shared IRQ support
drivers/iio/light/vcnl4000.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
---
base-commit: 3d6d817622b0a9721e3cc404df3469171582be13
change-id: 20260810-vcnl4000-02e19f70e706
Best regards,
--
Tsz Shan Chan <tchan@xxxxxxxxxxxxxx>