aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/dma-jz4780.c
diff options
context:
space:
mode:
authorAlex Smith <alex.smith@imgtec.com>2015-07-24 12:24:20 -0400
committerVinod Koul <vinod.koul@intel.com>2015-08-18 12:58:49 -0400
commit46fa516869f4b57f9eb63db02c76642abfb9f682 (patch)
treeea6ae1ca0b4e0466531f28708624efacdafad317 /drivers/dma/dma-jz4780.c
parentac9bd0ef5d3eefe9a21a7df6819937e3aa265203 (diff)
dmaengine: jz4780: Fix up dmaengine API function prototypes
Several function prototypes did not match the dmaengine API they were implementing, resulting in build warnings. Correct these. Signed-off-by: Alex Smith <alex.smith@imgtec.com> Cc: Vinod Koul <vinod.koul@intel.com> Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Cc: dmaengine@vger.kernel.org Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dma-jz4780.c')
-rw-r--r--drivers/dma/dma-jz4780.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c
index c29569ac9e4f..fc933a268986 100644
--- a/drivers/dma/dma-jz4780.c
+++ b/drivers/dma/dma-jz4780.c
@@ -294,7 +294,8 @@ static uint32_t jz4780_dma_setup_hwdesc(struct jz4780_dma_chan *jzchan,
294 294
295static struct dma_async_tx_descriptor *jz4780_dma_prep_slave_sg( 295static struct dma_async_tx_descriptor *jz4780_dma_prep_slave_sg(
296 struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, 296 struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len,
297 enum dma_transfer_direction direction, unsigned long flags) 297 enum dma_transfer_direction direction, unsigned long flags,
298 void *context)
298{ 299{
299 struct jz4780_dma_chan *jzchan = to_jz4780_dma_chan(chan); 300 struct jz4780_dma_chan *jzchan = to_jz4780_dma_chan(chan);
300 struct jz4780_dma_desc *desc; 301 struct jz4780_dma_desc *desc;
@@ -484,8 +485,9 @@ static void jz4780_dma_issue_pending(struct dma_chan *chan)
484 spin_unlock_irqrestore(&jzchan->vchan.lock, flags); 485 spin_unlock_irqrestore(&jzchan->vchan.lock, flags);
485} 486}
486 487
487static int jz4780_dma_terminate_all(struct jz4780_dma_chan *jzchan) 488static int jz4780_dma_terminate_all(struct dma_chan *chan)
488{ 489{
490 struct jz4780_dma_chan *jzchan = to_jz4780_dma_chan(chan);
489 struct jz4780_dma_dev *jzdma = jz4780_dma_chan_parent(jzchan); 491 struct jz4780_dma_dev *jzdma = jz4780_dma_chan_parent(jzchan);
490 unsigned long flags; 492 unsigned long flags;
491 LIST_HEAD(head); 493 LIST_HEAD(head);
@@ -507,9 +509,11 @@ static int jz4780_dma_terminate_all(struct jz4780_dma_chan *jzchan)
507 return 0; 509 return 0;
508} 510}
509 511
510static int jz4780_dma_slave_config(struct jz4780_dma_chan *jzchan, 512static int jz4780_dma_config(struct dma_chan *chan,
511 const struct dma_slave_config *config) 513 struct dma_slave_config *config)
512{ 514{
515 struct jz4780_dma_chan *jzchan = to_jz4780_dma_chan(chan);
516
513 if ((config->src_addr_width == DMA_SLAVE_BUSWIDTH_8_BYTES) 517 if ((config->src_addr_width == DMA_SLAVE_BUSWIDTH_8_BYTES)
514 || (config->dst_addr_width == DMA_SLAVE_BUSWIDTH_8_BYTES)) 518 || (config->dst_addr_width == DMA_SLAVE_BUSWIDTH_8_BYTES))
515 return -EINVAL; 519 return -EINVAL;
@@ -781,7 +785,7 @@ static int jz4780_dma_probe(struct platform_device *pdev)
781 dd->device_prep_slave_sg = jz4780_dma_prep_slave_sg; 785 dd->device_prep_slave_sg = jz4780_dma_prep_slave_sg;
782 dd->device_prep_dma_cyclic = jz4780_dma_prep_dma_cyclic; 786 dd->device_prep_dma_cyclic = jz4780_dma_prep_dma_cyclic;
783 dd->device_prep_dma_memcpy = jz4780_dma_prep_dma_memcpy; 787 dd->device_prep_dma_memcpy = jz4780_dma_prep_dma_memcpy;
784 dd->device_config = jz4780_dma_slave_config; 788 dd->device_config = jz4780_dma_config;
785 dd->device_terminate_all = jz4780_dma_terminate_all; 789 dd->device_terminate_all = jz4780_dma_terminate_all;
786 dd->device_tx_status = jz4780_dma_tx_status; 790 dd->device_tx_status = jz4780_dma_tx_status;
787 dd->device_issue_pending = jz4780_dma_issue_pending; 791 dd->device_issue_pending = jz4780_dma_issue_pending;