dma: sh: provide a migration path for slave drivers to stop using .private
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 5 Jul 2012 10:29:42 +0000 (12:29 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 20 Jul 2012 05:58:20 +0000 (11:28 +0530)
commit1ff8df4f5388ad66bd7d0199b5839a2e3345c055
treec6d80a09a4722c8c39cea58b80a771e34594b74b
parentc2cdb7e4d16394fc51dc5c2c5b3e7c3733bdfaac
dma: sh: provide a migration path for slave drivers to stop using .private

This patch extends the sh dmaengine driver to support the preferred channel
selection and configuration method, instead of using the "private" field
from struct dma_chan. We add a standard filter function to be used by
slave drivers instead of implementing their own ones, and add support for
the DMA_SLAVE_CONFIG control operation, which must accompany the new
channel selection method. We still support the legacy .private channel
allocation method to cater for a smooth driver migration.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
[applied a trvial checkpath fix]
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/sh/shdma-base.c
drivers/dma/sh/shdma.c
include/linux/sh_dma.h
include/linux/shdma-base.h