diff options
| author | David Lechner <dlechner@baylibre.com> | 2025-07-21 17:21:08 -0500 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-08-16 11:57:05 +0100 |
| commit | c9100ef6db6ec437d2f64e294ae50a8ec4b16856 (patch) | |
| tree | 2814d8e1a9d3628464bab77bf0deb21a819b7f66 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | iio: proximity: sx9500: use stack allocated struct for scan data (diff) | |
| download | linux-c9100ef6db6ec437d2f64e294ae50a8ec4b16856.tar.gz linux-c9100ef6db6ec437d2f64e294ae50a8ec4b16856.zip | |
iio: proximity: srf08: use stack allocated scan buffer
Use a stack allocated scan struct in srf08_trigger_handler(). Since the
scan buffer isn't used outside of this function and doesn't need to be
DMA-safe, it doesn't need to be in struct srf08_data. We can also
eliminate an extra local variable for the return value of
srf08_read_ranging() by using scan.chan directly.
Reviewed-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250721-iio-use-more-iio_declare_buffer_with_ts-6-v2-1-8b66e5b4e75a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
