dw_dmac: introduce to_dw_desc() macro
commite63a47a361e03eaf79e0f2f6cdaca8e7679d1867
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 18 Oct 2012 14:34:12 +0000 (18 17:34 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 8 Jan 2013 06:04:52 +0000 (7 22:04 -0800)
tree0cbd9b8403484048fbf97f5d4efa3a6df1d53274
parentba84bd7146b9244de0ce04cdc668521a73f5336f
dw_dmac: introduce to_dw_desc() macro

The to_dw_desc() macro helps to retrieve the dw_desc node from the
corresponding list_head structure.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dw_dmac.c
drivers/dma/dw_dmac_regs.h