On Tue, 2011-06-28 at 13:17 +0200, Nicolas Ferre wrote:Only change source/destination peripheral register access width.How about a little more explainable change log
This API was created to remove chan->private, so this doesn't make sense
Signed-off-by: Nicolas Ferre<nicolas.ferre@xxxxxxxxx>
Signed-off-by: Uwe Kleine-KÃnig<u.kleine-koenig@xxxxxxxxxxxxxx>
---
drivers/dma/at_hdmac.c | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index 7096adb..9cb8044 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -954,6 +954,35 @@ static int atc_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
clear_bit(ATC_IS_PAUSED,&atchan->status);
spin_unlock_irqrestore(&atchan->lock, flags);
+ } else if (cmd == DMA_SLAVE_CONFIG) {
+ struct dma_slave_config *dmaengine_cfg = (void *)arg;
+ struct at_dma_slave *atslave = chan->private;
at all. If your intent is to have a channels internal data, then you
should consider embedding dma_chan into this structure (the way other
dma drivers do) rather than using private field.