From: David Lechner Date: Tue, 16 Sep 2025 21:02:51 +0000 (-0500) Subject: iio: buffer: document iio_push_to_buffers_with_ts_unaligned() may sleep X-Git-Tag: v6.19-rc1~65^2~58^2~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b166e815cdcf2ddb755ca5311a5343635ff9610;p=thirdparty%2Flinux.git 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 Reviewed-by: Andy Shevchenko Signed-off-by: David Lechner Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index a80f7cc25a271..7da43a1f2f75f 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c @@ -2401,6 +2401,9 @@ EXPORT_SYMBOL_GPL(iio_push_to_buffers); * not require space for the timestamp, or 8 byte alignment of data. * It does however require an allocation on first call and additional * copies on all calls, so should be avoided if possible. + * + * Context: May sleep. + * Return: 0 on success, negative error code on failure. */ int iio_push_to_buffers_with_ts_unaligned(struct iio_dev *indio_dev, const void *data,