]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: buffer-dma: Turn iio_dma_buffer_init() void
authorNuno Sá <nuno.sa@analog.com>
Fri, 19 Dec 2025 15:28:14 +0000 (15:28 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 11:58:01 +0000 (11:58 +0000)
commit247a357a9101b76d832b7e19d85ba8dcfb3e3e8d
tree658d280e348a0ce7cff69eb414c5905f314e6843
parent07d6dc1708838e94e3da7294e601adf8da1d9414
iio: buffer-dma: Turn iio_dma_buffer_init() void

iio_dma_buffer_init() always return 0. Therefore there's no point in
returning int.

While at it, fix a mismatch between the function declaration and definition
regarding the struct device (dma_dev != dev).

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dma.c
include/linux/iio/buffer-dma.h