iio: dmabuf: Fix typo

s/incomming/incoming/g

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
iio: dmabuf: Use list_add_tail() instead of list_move_tail() in iio_dma_buffer_enqueue()

The block is not enqueued in any list at this point, using list_move_tail() will fail in this case.
iio: dmabuf: Make removal more robust

Once iio_dmabuf_free() has been called the driver expects no more calls to any
of its callbacks are made. Make sure that this is the case by setting ops to
NULL when the buffer is unregistered.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
iio: dmabuf: Implement space_available

This is necessary for write-buffer support.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
iio: dmabuf: Fix bytes_used handling for write buffers

We need to copy bytes_used from the userspace block when queuing the block so
we know the amount of data that is stored in it.

We also need to use size instead of bytes_used for checking the maximum amount
of data that can be written to the buffer when in fileio mode.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
dma: axi-dmac: Implement slave_caps and set maximum segment size

This allows users of the dmaengine driver to query the size and alignment
restrictions imposed by the DMA core.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
iio: Refactor dma-buffer to allow sub-classing

Refactor the dma-buffer implementation so it can be sub-classed by other buffer
implementations.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
iio: cf_axi_adc: Factor dmaengine code into a helper module

Factor out the dmaengine code from the cf_axi_adc driver into a common helper
module. This will allow to re-use this code for other drivers. Also isolate
everything related to the legacy buffer to its source file.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
iio: Cleanup cf_axi_dds

Major cleanup of the cf_axi_dds driver:
	* Merge cf_axi_dds_so and cf_axi_dds
	* Isolate buffer implementation to the buffer source file
	* Fix channel registration

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>