summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2026-08-31 11:31:22 +0300
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-04 19:55:10 +0100
commite7c1d459e542bc4a9c57f558e8ca1b14df7a7eef (patch)
treeedd852f566529d947cfbcd867349c131af9c2f9b /scripts/Makefile.thinlto
parent8f18fb487be208e0c8c6b5ac825e49fbe884a5a7 (diff)
downloadlinux-next-e7c1d459e542bc4a9c57f558e8ca1b14df7a7eef.tar.gz
linux-next-e7c1d459e542bc4a9c57f558e8ca1b14df7a7eef.zip
iio: accel: adxl367: add support for INT2 interrupt pin
The ADXL367 provides two independent interrupt output pins, INT1 and INT2, each with its own event mapping register (INTMAP1_LOWER at 0x2A and INTMAP2_LOWER at 0x2B) sharing an identical bit layout. Until now the driver hardcoded INT1 for all interrupt mappings, so a board that routes only INT2 to the host could never receive activity, inactivity or FIFO watermark interrupts. Determine the connected pin from the interrupt-names device tree property using fwnode_irq_get_byname(), and route the interrupt mappings to the matching register. Use the interrupt number returned by the lookup for devm_request_threaded_irq() so the requested line always matches the routed INTMAP register, regardless of the order in which the interrupts are listed. When no interrupt-names are present, default to INT1 and the bus-provided interrupt to preserve the existing behaviour. Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions