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

Add support for configuring an activity detection threshold. Extend the
interrupt handler to process activity-related interrupts, and provide
functions to set the threshold as well as to enable or disable activity
sensing. Additionally, introduce a virtual channel that represents the
logical AND of the x, y, and z axes in the IIO channel.

This patch serves as a preparatory step; some definitions and functions
introduced here are intended to be extended later to support inactivity
detection.

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