]> git.openfabrics.org - ~emulex/infiniband.git/commit
dw_dmac: store direction in the custom channel structure
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 10 Jan 2013 08:53:03 +0000 (10:53 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sat, 12 Jan 2013 13:07:23 +0000 (05:07 -0800)
commit0fdb567fc72da906e230ce7e2aae2feba260a6be
tree6aa11e21c5e79b248100e439c5273326f0feb7ac
parent01126856ff4f7d4cc5899c208fd4d3c7d0a2b83a
dw_dmac: store direction in the custom channel structure

Currently the direction value comes from the generic slave configuration
structure and explicitly as a preparation function parameter. The first one is
kinda obsoleted. Thus, we have to store the value passed to the preparation
function somewhere in our structures to be able to use it later. The best
candidate to provide the storage is a custom channel structure. Until now we
still keep and check the direction field of the slave config structure as well.

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