iio: buffer-dmaengine: Use dmaengine_terminate_sync()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 8 Feb 2016 17:51:58 +0000 (18:51 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 9 Feb 2016 21:05:17 +0000 (21:05 +0000)
commit9d452184fc9d9c3a0e6df5910857c6017865e3c0
treeba17ed3bcd31ff7f7248b906c246ed5ccff5da28
parentf47732c0daf5d1607ba0775edad3460d18ee1f83
iio: buffer-dmaengine: Use dmaengine_terminate_sync()

The DMAengine framework gained support for synchronized transfer
termination. Use the new dmaengine_terminate_sync() function instead of
dmaengine_terminate_all(), this avoids a potential race condition when
disabling the buffer.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/buffer/industrialio-buffer-dmaengine.c