aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-07-22 14:35:02 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-08-16 11:57:05 +0100
commit5335f93d28143b6288ca6d8cec1f05b033c456c1 (patch)
treef0992482929edccc48e96196e2eb75cb313e4951 /tools/perf/scripts/python
parentiio: fix iio_push_to_buffers_with_ts() typo (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions