]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: bma180: use stack allocated buffer for scan
authorDavid Lechner <dlechner@baylibre.com>
Mon, 21 Jul 2025 23:16:34 +0000 (18:16 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 10:57:05 +0000 (11:57 +0100)
commit97b262d24ae28b1e86586a927c8be9df9747fb56
treea81ac8b02432b134cca31b4e57fb9d21ca0245e6
parentc9100ef6db6ec437d2f64e294ae50a8ec4b16856
iio: accel: bma180: use stack allocated buffer for scan

Move the scan struct to the stack instead of being in the driver state
struct. The buffer is only used in a single function and does not need
to be DMA-safe so it does not need to exist outside of that function's
scope.

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-v2-1-f8fb11b8add8@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bma180.c