diff options
| author | David Lechner <dlechner@baylibre.com> | 2025-07-22 14:35:02 -0500 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-08-16 11:57:05 +0100 |
| commit | 5335f93d28143b6288ca6d8cec1f05b033c456c1 (patch) | |
| tree | f0992482929edccc48e96196e2eb75cb313e4951 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | iio: fix iio_push_to_buffers_with_ts() typo (diff) | |
| download | linux-5335f93d28143b6288ca6d8cec1f05b033c456c1.tar.gz linux-5335f93d28143b6288ca6d8cec1f05b033c456c1.zip | |
iio: proximity: sx9500: use stack allocated struct for scan data
Use a stack-allocated struct in sx9500_trigger_handler() to hold the
IIO buffer scan data. Since the scan buffer isn't used outside of this
function, it doesn't need to be in struct sx9500_data.
By always allocating enough space for the maximum number of channels,
we can avoid having to reallocate the buffer each time buffered reads
are enabled.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250722-iio-use-more-iio_declare_buffer_with_ts-4-v2-1-9e566f3a4c6a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
