summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorFrancesco Lavra <flavra@baylibre.com>2026-01-15 18:53:48 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-01-16 19:38:31 +0000
commita99b000f92413f254a6dc0f6ab88b310152f9485 (patch)
treef75c3f32eff2dbf6adae789cdf4de11b3332589d /tools/perf/scripts/python/stackcollapse.py
parentbac5e3d20c45392120c4298c2f66fc4387776b80 (diff)
downloadlinux-a99b000f92413f254a6dc0f6ab88b310152f9485.tar.gz
linux-a99b000f92413f254a6dc0f6ab88b310152f9485.zip
iio: accel: adxl380: Store sampling frequency index in odr struct member
The ADXL380 driver assumes that acceleration samples are always retrieved via the high-performance DSM signal path; as a result, the sampling frequency value depends exclusively on the decimation filter settings in the TRIG_CFG register. In preparation for adding support for sampling frequency values that rely on the low-power SAR signal path (on which the decimation filters are not supported), use the (currently unused) 'odr' member of struct adxl380_state to store the sampling frequency value, and when userspace requests the current frequency value, retrieve it from the struct instead of calculating it from the decimation filter settings. Signed-off-by: Francesco Lavra <flavra@baylibre.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions