summaryrefslogtreecommitdiff
path: root/drivers/dma/ste_dma40.c
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-01-25 11:18:27 +0100
committerLinus WALLEIJ <linus.walleij@stericsson.com>2011-10-22 18:45:40 +0200
commitc8a2f2af35d890a7da7544bfb185e8b539d2856e (patch)
tree0183a2916fb3c26973888b907529befe87d77257 /drivers/dma/ste_dma40.c
parent0e2c146dba1e60cb31aa5524e24d7acf2a30bd8f (diff)
dma40: pass the info pointer all the way to reduce argument count
ST-Ericsson ID: 362972 ST-Ericsson FOSS-OUT ID: NA ST-Ericsson Linux next: NA Change-Id: I3279e5a337ca319ec9a8f21eef8dfbfec6e8182f Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34884 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com>
Diffstat (limited to 'drivers/dma/ste_dma40.c')
-rw-r--r--drivers/dma/ste_dma40.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 35693c8ba13..8c7cfea7c01 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2016,19 +2016,17 @@ d40_prep_sg_phy(struct d40_chan *chan, struct d40_desc *desc,
desc->lli_phy.src,
virt_to_phys(desc->lli_phy.src),
chan->src_def_cfg,
- src_info->data_width,
- src_info->psize,
desc->cyclic,
- desc->txd.flags & DMA_PREP_INTERRUPT);
+ desc->txd.flags & DMA_PREP_INTERRUPT,
+ src_info);
ret = d40_phy_sg_to_lli(sg_dst, sg_len, dst_dev_addr,
desc->lli_phy.dst,
virt_to_phys(desc->lli_phy.dst),
chan->dst_def_cfg,
- dst_info->data_width,
- dst_info->psize,
desc->cyclic,
- desc->txd.flags & DMA_PREP_INTERRUPT);
+ desc->txd.flags & DMA_PREP_INTERRUPT,
+ dst_info);
dma_sync_single_for_device(chan->base->dev, desc->lli_pool.dma_addr,
desc->lli_pool.size, DMA_TO_DEVICE);