iio: buffer-dmaengine: make use of the 'struct device *' argument
authorNuno Sa <nuno.sa@analog.com>
Tue, 9 Jan 2024 14:03:16 +0000 (15:03 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 23 Jan 2024 22:06:56 +0000 (22:06 +0000)
commit82cc631881206827570d2d84e8a22524afe3638f
tree7a36e32a939751fb7dd8fc517f28b6b50994ab8f
parente7748c17bda04758a01f1241896b553f8b3873cc
iio: buffer-dmaengine: make use of the 'struct device *' argument

Respect the @dev argument in devm_iio_dmaengine_buffer_setup() and bind the
IIO DMA buffer lifetime to that device.

For the only user of this function, the IIO parent device is the
struct device being passed to the API so no real fix in here (just
consistency with other IIO APIs).

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20240109-dmaengine_use_device-v1-1-1cbdb7fe9f29@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dmaengine.c