Commit 27570497 authored by Jiri Pirko's avatar Jiri Pirko Committed by Linus Torvalds

spi: fix spi_write_then_read() comment

Buffer needs not be dma-safe, not rx data length.
Signed-off-by: default avatarJiri Pirko <jpirko@redhat.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 50e0a7bd
...@@ -700,8 +700,8 @@ static u8 *buf; ...@@ -700,8 +700,8 @@ static u8 *buf;
* @spi: device with which data will be exchanged * @spi: device with which data will be exchanged
* @txbuf: data to be written (need not be dma-safe) * @txbuf: data to be written (need not be dma-safe)
* @n_tx: size of txbuf, in bytes * @n_tx: size of txbuf, in bytes
* @rxbuf: buffer into which data will be read * @rxbuf: buffer into which data will be read (need not be dma-safe)
* @n_rx: size of rxbuf, in bytes (need not be dma-safe) * @n_rx: size of rxbuf, in bytes
* Context: can sleep * Context: can sleep
* *
* This performs a half duplex MicroWire style transaction with the * This performs a half duplex MicroWire style transaction with the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment