iio: accel: sca3300: use IIO_DECLARE_BUFFER_WITH_TS
authorDavid Lechner <dlechner@baylibre.com>
Wed, 7 May 2025 20:42:45 +0000 (15:42 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 21 May 2025 13:20:32 +0000 (14:20 +0100)
commitedeb67fbbf4b59a025a27891b92a9fc07e77d2f2
tree1eb5fd2488cf6f37a6716d1179c11b68389a3280
parent6d06978f918db6c2710bfc6138fdd6131dc939c7
iio: accel: sca3300: use IIO_DECLARE_BUFFER_WITH_TS

Use IIO_DECLARE_BUFFER_WITH_TS() to declare the buffer that gets used
with iio_push_to_buffers_with_ts(). This makes the code a bit easier to
read and understand.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250507-iio-introduce-iio_declare_buffer_with_ts-v6-6-4aee1b9f1b89@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/sca3300.c