iio: accel: adxl313: make use of regmap cache
authorLothar Rubusch <l.rubusch@gmail.com>
Wed, 2 Jul 2025 23:08:12 +0000 (23:08 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jul 2025 14:36:26 +0000 (15:36 +0100)
commitec489d91571ee85aa70f8a25f3882a6e97390ab4
tree9e7535ea6ad07c4e8de8ef3691f8bb88dd535f68
parent1a4deda6c68f1aca86e7667bb1073581d849e40c
iio: accel: adxl313: make use of regmap cache

Setup regmap cache to cache register configuration, reducing bus traffic
for repeated accesses to non volatile registers.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250702230819.19353-2-l.rubusch@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl313.h
drivers/iio/accel/adxl313_core.c
drivers/iio/accel/adxl313_i2c.c
drivers/iio/accel/adxl313_spi.c