OSDN Git Service

spi: davinci: simplify poll mode transfers
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Mon, 23 Aug 2010 11:09:19 +0000 (16:39 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:30 +0000 (18:38 +0530)
commit839c996ca8dd56f9ea80d7fc0c8b18b01394c82a
treef8c66ef8f4eaabfb9e4de0e7ca2bbf6038d5536a
parentcf90fe73504764cbcc2552c7ea69b1866059db30
spi: davinci: simplify poll mode transfers

Use the fact that the get_tx and get_rx can now cope with
NULL buffer pointers to simplify the poll mode transfer
code.

While at it, check for SPI errors every transfer rather than
at the end of the whole transfer.

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