]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: accel: adxl345: move INT enable to regmap cache
authorLothar Rubusch <l.rubusch@gmail.com>
Thu, 13 Mar 2025 16:50:37 +0000 (16:50 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:51 +0000 (19:09 +0100)
commit77d48f5e4a603efc22785a03800fd2a127b51be4
tree3c105ae91de85e84ffe86cfb5b5b9884cc3d7ea2
parentf184a095c8559f0df8dc36d8c88df0ca2c687bce
iio: accel: adxl345: move INT enable to regmap cache

Replace the interrupt enable member variable to the regmap cache. This
makes the function set_interrupts() obsolete. The interrupt enable
register is written when the driver is probed. Thus it is perfectly
cacheable.

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