Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
4992ce00 536bf30d

+1 -5
+1 -5
include/linux/iio/buffer.h
··· 26 26 * @data: sample data 27 27 * @timestamp: timestamp for the sample data 28 28 * 29 - * Pushes data to the IIO device's buffers. If timestamps are enabled for the 30 - * device the function will store the supplied timestamp as the last element in 31 - * the sample data buffer before pushing it to the device buffers. The sample 32 - * data buffer needs to be large enough to hold the additional timestamp 33 - * (usually the buffer should be indio->scan_bytes bytes large). 29 + * DEPRECATED: Use iio_push_to_buffers_with_ts() instead. 34 30 * 35 31 * Returns 0 on success, a negative error code otherwise. 36 32 */