aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ipu/ipu_idmac.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2010-03-26 19:52:10 -0400
committerDan Williams <dan.j.williams@intel.com>2010-03-26 19:52:10 -0400
commitbca3469205402d9fb14060d255d8786ae2256640 (patch)
tree3b0c7f246fb9a6eafd3a82dd621dd9753589b3f4 /drivers/dma/ipu/ipu_idmac.c
parent0793448187643b50af89d36b08470baf45a3cab4 (diff)
dmaengine: provide helper for setting txstate
Simple conditional struct filler to cut out some duplicated code. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ipu/ipu_idmac.c')
-rw-r--r--drivers/dma/ipu/ipu_idmac.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c
index b9cef8b1701c..246a6143e4a7 100644
--- a/drivers/dma/ipu/ipu_idmac.c
+++ b/drivers/dma/ipu/ipu_idmac.c
@@ -1651,11 +1651,7 @@ static enum dma_status idmac_tx_status(struct dma_chan *chan,
1651{ 1651{
1652 struct idmac_channel *ichan = to_idmac_chan(chan); 1652 struct idmac_channel *ichan = to_idmac_chan(chan);
1653 1653
1654 if (txstate) { 1654 dma_set_tx_state(txstate, ichan->completed, chan->cookie, 0);
1655 txstate->last = ichan->completed;
1656 txstate->used = chan->cookie;
1657 txstate->residue = 0;
1658 }
1659 if (cookie != chan->cookie) 1655 if (cookie != chan->cookie)
1660 return DMA_ERROR; 1656 return DMA_ERROR;
1661 return DMA_SUCCESS; 1657 return DMA_SUCCESS;