]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: accel: adxl313: implement power-save on inactivity
authorLothar Rubusch <l.rubusch@gmail.com>
Wed, 2 Jul 2025 23:08:17 +0000 (23:08 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jul 2025 14:36:27 +0000 (15:36 +0100)
commit554396d4b0be5cdec4654fd3456c08886aa8da3e
tree16031f736f50c9c575d3a5abe43ffd09109f7f5c
parente3fc1cadf226eacdf44565b3f3455dfc7d8785f5
iio: accel: adxl313: implement power-save on inactivity

Configure the link bit to associate activity and inactivity sensing,
allowing the sensor to reflect its internal power-saving state.
Additionally, enable the auto-sleep bit to transition the sensor into
auto-sleep mode during periods of inactivity, as outlined in the
datasheet.

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