Blackfin SPI Driver: unify duplicated code in dma read/write paths
authorMike Frysinger <vapier.adi@gmail.com>
Tue, 7 Apr 2009 02:00:36 +0000 (19:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2009 15:31:04 +0000 (08:31 -0700)
commit7aec35661733c651f616f9b3f69d758f6bfe2a7f
tree9c8a77b7b9195d1b1aab1ae48cccace95da96702
parent04b95d2f7453d64f89ca1d8c3e70bcc7cc38320f
Blackfin SPI Driver: unify duplicated code in dma read/write paths

For DMA TX/RX operation in pump_transfers, DMA contriguration code in TX
and RX paths are almost the same.  This patch unify the duplicated DMA
code to make it more readable.

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi_bfin5xx.c