mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
This brings the DMA buffer API more in line with what we have in the triggered buffer. There's no need of having both devm_iio_dmaengine_buffer_setup() and devm_iio_dmaengine_buffer_alloc(). Hence we introduce the new iio_dmaengine_buffer_setup() that together with devm_iio_dmaengine_buffer_setup() should be all we need. Note that as part of this change iio_dmaengine_buffer_alloc() is again static and the axi-adc was updated accordingly. Signed-off-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240419-iio-backend-axi-dac-v4-1-5ca45b4de294@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
22 lines
562 B
C
22 lines
562 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright 2014-2015 Analog Devices Inc.
|
|
* Author: Lars-Peter Clausen <lars@metafoo.de>
|
|
*/
|
|
|
|
#ifndef __IIO_DMAENGINE_H__
|
|
#define __IIO_DMAENGINE_H__
|
|
|
|
struct iio_dev;
|
|
struct device;
|
|
|
|
void iio_dmaengine_buffer_free(struct iio_buffer *buffer);
|
|
struct iio_buffer *iio_dmaengine_buffer_setup(struct device *dev,
|
|
struct iio_dev *indio_dev,
|
|
const char *channel);
|
|
int devm_iio_dmaengine_buffer_setup(struct device *dev,
|
|
struct iio_dev *indio_dev,
|
|
const char *channel);
|
|
|
|
#endif
|