diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2010-05-17 19:30:42 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-05-17 19:30:42 -0400 |
commit | 058276303dbc4ed089c1f7dad0871810b1f5ddf1 (patch) | |
tree | df26ff701721b2a91d61bd29e48bad7cbcedd746 /drivers/dma/timb_dma.c | |
parent | 4aed79b2818e7330b5d00143e4c20bc6555df91f (diff) |
DMAENGINE: extend the control command to include an arg
This adds an argument to the DMAengine control function, so that
we can later provide control commands that need some external data
passed in through an argument akin to the ioctl() operation
prototype.
[dan.j.williams@intel.com: fix up some missed conversions]
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/timb_dma.c')
-rw-r--r-- | drivers/dma/timb_dma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c index 44b346d8d319..0172fa3c7a2b 100644 --- a/drivers/dma/timb_dma.c +++ b/drivers/dma/timb_dma.c | |||
@@ -611,7 +611,8 @@ static struct dma_async_tx_descriptor *td_prep_slave_sg(struct dma_chan *chan, | |||
611 | return &td_desc->txd; | 611 | return &td_desc->txd; |
612 | } | 612 | } |
613 | 613 | ||
614 | static int td_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd) | 614 | static int td_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, |
615 | unsigned long arg) | ||
615 | { | 616 | { |
616 | struct timb_dma_chan *td_chan = | 617 | struct timb_dma_chan *td_chan = |
617 | container_of(chan, struct timb_dma_chan, chan); | 618 | container_of(chan, struct timb_dma_chan, chan); |