diff options
author | Jiri Pirko <jpirko@redhat.com> | 2009-06-17 19:26:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 16:03:42 -0400 |
commit | 275704970c76c2453b656967586de9c35d247eae (patch) | |
tree | ab3c10b2dce7a81a0ebf9abf0e62deec0b3e5827 | |
parent | 50e0a7bd02f95be95ac03299b0356ba6400d1c6d (diff) |
spi: fix spi_write_then_read() comment
Buffer needs not be dma-safe, not rx data length.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
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>
-rw-r--r-- | drivers/spi/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index a525a3a848c1..70845ccd85c3 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -700,8 +700,8 @@ static u8 *buf; | |||
700 | * @spi: device with which data will be exchanged | 700 | * @spi: device with which data will be exchanged |
701 | * @txbuf: data to be written (need not be dma-safe) | 701 | * @txbuf: data to be written (need not be dma-safe) |
702 | * @n_tx: size of txbuf, in bytes | 702 | * @n_tx: size of txbuf, in bytes |
703 | * @rxbuf: buffer into which data will be read | 703 | * @rxbuf: buffer into which data will be read (need not be dma-safe) |
704 | * @n_rx: size of rxbuf, in bytes (need not be dma-safe) | 704 | * @n_rx: size of rxbuf, in bytes |
705 | * Context: can sleep | 705 | * Context: can sleep |
706 | * | 706 | * |
707 | * This performs a half duplex MicroWire style transaction with the | 707 | * This performs a half duplex MicroWire style transaction with the |