]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: accel: adxl345: use regmap cache for INT mapping
authorLothar Rubusch <l.rubusch@gmail.com>
Thu, 13 Mar 2025 16:50:36 +0000 (16:50 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:51 +0000 (19:09 +0100)
commitf184a095c8559f0df8dc36d8c88df0ca2c687bce
treecda4918c50fd9578ef949e112664373caf5511cb
parent0de3748d80f32d71600b95403d5805a6b13df32f
iio: accel: adxl345: use regmap cache for INT mapping

Use regmap cache to replace the maintenance of the interrupt mapping
state by a member variable intio. The interrupt mapping is initialized
when the driver is probed, and it is perfectly cacheable.

The patch will still leave the function set_interrupts(). A follow up
patch takes care of it, when cleaning up the INT enable register
variable.

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