]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: accel: adxl313: add inactivity sensing
authorLothar Rubusch <l.rubusch@gmail.com>
Wed, 2 Jul 2025 23:08:16 +0000 (23:08 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jul 2025 14:36:27 +0000 (15:36 +0100)
commite3fc1cadf226eacdf44565b3f3455dfc7d8785f5
treef3f860411266186873da429ce925db64966e6093
parent385eb69ee6ec1fecc475bc1e09f640e2a205c38b
iio: accel: adxl313: add inactivity sensing

Enhance the interrupt handler to process inactivity events. Introduce
functions to configure the threshold and period registers for
inactivity detection, as well as to enable or disable the inactivity
feature. Extend the fake IIO channel to handle inactivity events by
combining the x, y, and z axes using a logical AND operation.

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-6-l.rubusch@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl313.h
drivers/iio/accel/adxl313_core.c