]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: imu: st_lsm6dsx: add event configurability on a per axis basis
authorFrancesco Lavra <flavra@baylibre.com>
Mon, 1 Dec 2025 10:00:16 +0000 (11:00 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 11:10:26 +0000 (11:10 +0000)
commit855119fa0a58a0aa1d40fe9c7c5da437167ba9ba
tree75a3e9aa2f34302970e4dc2806b57bf7f0bed2cf
parentc93e8f091baca406981e0468264ed8747285cae6
iio: imu: st_lsm6dsx: add event configurability on a per axis basis

In order to be able to configure event detection on a per axis
basis (for either setting an event threshold/sensitivity value, or
enabling/disabling event detection), add new axis-specific fields
to struct st_lsm6dsx_event_src, and modify the logic that handles
event configuration to properly handle axis-specific settings when
supported by a given event source.
A future commit will add actual event sources with per-axis
configurability.

Signed-off-by: Francesco Lavra <flavra@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c