dma: sh: use an integer slave ID to improve API compatibility
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 5 Jul 2012 10:29:41 +0000 (12:29 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 20 Jul 2012 05:53:45 +0000 (11:23 +0530)
commitc2cdb7e4d16394fc51dc5c2c5b3e7c3733bdfaac
tree1e98394a20b33ed09d55b5e37a1c1ed2784721d6
parentecf90fbbdc66cde6f5fa25d88541112b9baac459
dma: sh: use an integer slave ID to improve API compatibility

Initially struct shdma_slave has been introduced with the only member - an
unsigned slave ID - to describe common properties of DMA slaves in an
extensible way. However, experience shows, that a slave ID is indeed the
only parameter, needed to identify DMA slaves. This is also, what is used
by the core dmaengine API in struct dma_slave_config. We switch to using
the slave_id directly, instead of passing a pointer to struct shdma_slave
to improve compatibility with the core. We also make the slave_id signed
for easier error checking.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
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