]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
spi: simplify spi_write_then_read()
authorVernon Sauder <vernoninhand@gmail.com>
Thu, 16 Oct 2008 05:02:40 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:38 +0000 (11:21 -0700)
commitf9b90e39cbc5c4d6ef60022fd1f25d541df0aad1
treeaf043fc4e24a12447c7312ef9b246f24d619f6f7
parent62f9e8f15a95822e0a793090ff69b277690c6aa6
spi: simplify spi_write_then_read()

Modify spi_write_then_read() to use one transfer.  This speeds up all
callers, and is a minor code shrink.

Signed-off-by: Vernon Sauder <Vernon.Sauder@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi.c