dmaengine: PL08x: extract function to to generate cctl values
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 16 May 2012 10:16:03 +0000 (11:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:15:46 +0000 (14:15 +0100)
commit9862ba17b7b6866cbee90547ff1f58d055c13f97
tree88b467e0fa3c0225cf068513b33cf2a30a639f44
parent409ec8db46dc60e5da7169b6bac6b294513d386a
dmaengine: PL08x: extract function to to generate cctl values

Extract the functionality from dma_slave_config to generate the cctl
values for a given bus width and burst size.  This allows us to use
this elsewhere in the driver, namely the prepare functions.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/amba-pl08x.c