Home
last modified time | relevance | path

Searched hist:e0fcca9fbd99e959855aa1d66c125d696f969e68 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/iio/
H A Dbuffer-dmaengine.hdiff e0fcca9fbd99e959855aa1d66c125d696f969e68 Tue Mar 24 08:46:32 CDT 2020 Alexandru Ardelean <alexandru.ardelean@analog.com> iio: buffer-dmaengine: add dev-managed calls for buffer alloc

Currently, when using a 'iio_dmaengine_buffer_alloc()', an matching call to
'iio_dmaengine_buffer_free()' must be made.

With this change, this can be avoided by using
'devm_iio_dmaengine_buffer_alloc()'. The buffer will get free'd via the
device's devres handling.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
/openbmc/linux/drivers/iio/buffer/
H A Dindustrialio-buffer-dmaengine.cdiff e0fcca9fbd99e959855aa1d66c125d696f969e68 Tue Mar 24 08:46:32 CDT 2020 Alexandru Ardelean <alexandru.ardelean@analog.com> iio: buffer-dmaengine: add dev-managed calls for buffer alloc

Currently, when using a 'iio_dmaengine_buffer_alloc()', an matching call to
'iio_dmaengine_buffer_free()' must be made.

With this change, this can be avoided by using
'devm_iio_dmaengine_buffer_alloc()'. The buffer will get free'd via the
device's devres handling.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>