aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/shdma.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-06-16 01:08:09 -0400
committerPaul Mundt <lethal@linux-sh.org>2011-06-16 02:03:36 -0400
commitc4e0dd7835d12d9765a372b586a5020ac29cc706 (patch)
treeaf369cefba6bdef916b44d4ef6f040495d8d1213 /drivers/dma/shdma.h
parent19a1166fa2352f9c07a5ab34a3c2aab462cff35d (diff)
dmaengine: shdma: add to_sh_dev define
This patch adds "to_sh_dev" macro, and clean up codes. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/dma/shdma.h')
-rw-r--r--drivers/dma/shdma.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/shdma.h b/drivers/dma/shdma.h
index 5ae9fc512180..6c73b654a5c3 100644
--- a/drivers/dma/shdma.h
+++ b/drivers/dma/shdma.h
@@ -52,5 +52,7 @@ struct sh_dmae_device {
52#define to_sh_chan(chan) container_of(chan, struct sh_dmae_chan, common) 52#define to_sh_chan(chan) container_of(chan, struct sh_dmae_chan, common)
53#define to_sh_desc(lh) container_of(lh, struct sh_desc, node) 53#define to_sh_desc(lh) container_of(lh, struct sh_desc, node)
54#define tx_to_sh_desc(tx) container_of(tx, struct sh_desc, async_tx) 54#define tx_to_sh_desc(tx) container_of(tx, struct sh_desc, async_tx)
55#define to_sh_dev(chan) container_of(chan->common.device,\
56 struct sh_dmae_device, common)
55 57
56#endif /* __DMA_SHDMA_H */ 58#endif /* __DMA_SHDMA_H */