]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: accel: adxl345: reorganize irq handler
authorLothar Rubusch <l.rubusch@gmail.com>
Thu, 20 Feb 2025 10:42:22 +0000 (10:42 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Mar 2025 13:17:51 +0000 (13:17 +0000)
commit62c6b4f1c70e0a3a31df36dd055524cfe6acfa5e
treeecf179207a0231f419069271fc596e2681a38e49
parenta69b0bd304382b5e7050418614b1f5ddb36e77fe
iio: accel: adxl345: reorganize irq handler

Reorganize the IRQ handler. Move the overrun handling to the bottom.
Overrun leads to reset the interrupt register. This also happens at
evaluation of a particular interrupt event. First evaluate an event
if possible, then fall back to overrun handling. Additionally simplify
fetching the interrupt status function.

Both is in preparation to build interrupt handling up for the handling
of different detected events, implemented in follow up patches.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Link: https://patch.msgid.link/20250220104234.40958-4-l.rubusch@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345.h
drivers/iio/accel/adxl345_core.c