summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFrancesco Lavra <flavra@baylibre.com>2025-12-01 11:00:15 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-12-21 11:10:26 +0000
commitc93e8f091baca406981e0468264ed8747285cae6 (patch)
tree20f22fcee3412d324764362fb7df39d9ae0a9179 /tools/perf/scripts/python
parentb008b1ff0ce005e998bb4c7e876ffa2d31a1e511 (diff)
downloadlinux-c93e8f091baca406981e0468264ed8747285cae6.tar.gz
linux-c93e8f091baca406981e0468264ed8747285cae6.zip
iio: imu: st_lsm6dsx: make event management functions generic
In preparation for adding support for more event types, use an array indexed by event ID instead of a scalar value to store enabled events, and refactor the functions to configure and report events so that their implementation is not specific for wakeup events. Move the logic to update the global event interrupt enable flag from st_lsm6dsx_event_setup() to its calling function, so that it can take into account also event sources different from the source being configured. While changing the signature of the st_lsm6dsx_event_setup() function, opportunistically add the currently unused `axis` parameter, which will be used when adding support for enabling and disabling events on a per axis basis. Signed-off-by: Francesco Lavra <flavra@baylibre.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Acked-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions