diff options
author | 2012-06-11 20:11:40 +0200 | |
---|---|---|
committer | 2012-06-20 16:23:16 +0530 | |
commit | 3052cc2c92f11875d111d5b7b9b3ad535b3128b9 (patch) | |
tree | 501f397160adb99d38907c69cd30e0da74f034a9 /include/linux/dmaengine.h | |
parent | Merge branch 'fixes' into next (diff) | |
download | linux-3052cc2c92f11875d111d5b7b9b3ad535b3128b9.tar.gz linux-3052cc2c92f11875d111d5b7b9b3ad535b3128b9.tar.bz2 linux-3052cc2c92f11875d111d5b7b9b3ad535b3128b9.zip |
dmaengine: Add wrapper for device_tx_status callback
This patch adds a small inline wrapper for the devivce_tx_status callback of a
dma device. This makes the source code of users of this function a bit more
compact and a bit more legible.
E.g.:
-status = chan->device->device_tx_status(chan, cookie, &state)
+status = dmaengine_tx_status(chan, cookie, &state)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index ccec62f8e501..9c02a4508b25 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -674,6 +674,12 @@ static inline int dmaengine_resume(struct dma_chan *chan) return dmaengine_device_control(chan, DMA_RESUME, 0); } +static inline enum dma_status dmaengine_tx_status(struct dma_chan *chan, + dma_cookie_t cookie, struct dma_tx_state *state) +{ + return chan->device->device_tx_status(chan, cookie, state); +} + static inline dma_cookie_t dmaengine_submit(struct dma_async_tx_descriptor *desc) { return desc->tx_submit(desc); |