]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: adxl380: Introduce helper function for activity detection
authorFrancesco Lavra <flavra@baylibre.com>
Thu, 15 Jan 2026 17:53:49 +0000 (18:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Jan 2026 19:40:04 +0000 (19:40 +0000)
commitfabae7558722dcf41a9137f6f0f82462867d7c96
tree5e04ccef05e51d2aaa91a6d69f68e5a6c59fa48d
parenta99b000f92413f254a6dc0f6ab88b310152f9485
iio: accel: adxl380: Introduce helper function for activity detection

Motion detection functionalities (such as activity and inactivity
detection) are only available when the chip is in a low-power mode; this
affects the available sampling frequency values.
In preparation for adding support for a new frequency value, introduce a
helper function that checks whether activity/inactivity detection is
currently enabled; this function will be reused in a future commit to
determine what frequency values are available at any given time.
No functional changes.

Signed-off-by: Francesco Lavra <flavra@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl380.c