]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: at91-sama5d2: use IIO_DECLARE_BUFFER_WITH_TS
authorDavid Lechner <dlechner@baylibre.com>
Wed, 7 May 2025 20:42:46 +0000 (15:42 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 21 May 2025 13:20:32 +0000 (14:20 +0100)
commit04c129077689ee8f01bf3443377bd95d96871339
tree79663eff7cdffc5bf1454c80d18d48751727cabf
parentedeb67fbbf4b59a025a27891b92a9fc07e77d2f2
iio: adc: at91-sama5d2: 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-7-4aee1b9f1b89@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91-sama5d2_adc.c