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

iio: buffer: document iio_push_to_buffers_with_ts_unaligned() may sleep

Add Context: documentation comment that
iio_push_to_buffers_with_ts_unaligned() may sleep because it calls
devm_krealloc().

Also document Return: value while here.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
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
6b166e81 97c8b5de

+3
+3
drivers/iio/industrialio-buffer.c
··· 2401 2401 * not require space for the timestamp, or 8 byte alignment of data. 2402 2402 * It does however require an allocation on first call and additional 2403 2403 * copies on all calls, so should be avoided if possible. 2404 + * 2405 + * Context: May sleep. 2406 + * Return: 0 on success, negative error code on failure. 2404 2407 */ 2405 2408 int iio_push_to_buffers_with_ts_unaligned(struct iio_dev *indio_dev, 2406 2409 const void *data,