spi: davinci: let DMA operation be specified on per-device basis
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Wed, 6 Oct 2010 11:33:10 +0000 (17:03 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:36 +0000 (18:38 +0530)
commit87467bd9052725283b9a9f4b1b310fed8744fb1e
tree522a1d71933440af2b16072bbf95a138dd08392e
parent6dbd29b27bd2627ba0025a6cff14381e69512cdf
spi: davinci: let DMA operation be specified on per-device basis

Let DMA operation be specified on a per-device basis instead
of selecting it once during probe.

A side effect of this is the need to combine the PIO and DMA buffer
txrx_bufs routine. This is good since they anyway share some common
functionality.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/include/mach/spi.h
drivers/spi/davinci_spi.c