From: David Lechner Date: Tue, 16 Sep 2025 21:02:54 +0000 (-0500) Subject: iio: buffer: deprecated iio_push_to_buffers_with_timestamp() X-Git-Tag: v6.19-rc1~65^2~58^2~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4992ce003b76ee1629ad4e7332a49ea2619e7523;p=thirdparty%2Fkernel%2Flinux.git iio: buffer: deprecated iio_push_to_buffers_with_timestamp() Replace the documentation of iio_push_to_buffers_with_timestamp() with a deprecation notice pointing to the preferred alternative. Signed-off-by: David Lechner Signed-off-by: Jonathan Cameron --- diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h index e46b818981aaf..d37f82678f716 100644 --- a/include/linux/iio/buffer.h +++ b/include/linux/iio/buffer.h @@ -26,11 +26,7 @@ int iio_pop_from_buffer(struct iio_buffer *buffer, void *data); * @data: sample data * @timestamp: timestamp for the sample data * - * Pushes data to the IIO device's buffers. If timestamps are enabled for the - * device the function will store the supplied timestamp as the last element in - * the sample data buffer before pushing it to the device buffers. The sample - * data buffer needs to be large enough to hold the additional timestamp - * (usually the buffer should be indio->scan_bytes bytes large). + * DEPRECATED: Use iio_push_to_buffers_with_ts() instead. * * Returns 0 on success, a negative error code otherwise. */