mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
0a0760358c
commit
3052cc2c92
1 changed files with 6 additions and 0 deletions
|
@ -674,6 +674,12 @@ static inline int dmaengine_resume(struct dma_chan *chan)
|
||||||
return dmaengine_device_control(chan, DMA_RESUME, 0);
|
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)
|
static inline dma_cookie_t dmaengine_submit(struct dma_async_tx_descriptor *desc)
|
||||||
{
|
{
|
||||||
return desc->tx_submit(desc);
|
return desc->tx_submit(desc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue