From: Jiri Pirko Date: Wed, 17 Jun 2009 23:26:06 +0000 (-0700) Subject: spi: fix spi_write_then_read() comment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=275704970c76c2453b656967586de9c35d247eae;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git spi: fix spi_write_then_read() comment Buffer needs not be dma-safe, not rx data length. Signed-off-by: Jiri Pirko Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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; * @spi: device with which data will be exchanged * @txbuf: data to be written (need not be dma-safe) * @n_tx: size of txbuf, in bytes - * @rxbuf: buffer into which data will be read - * @n_rx: size of rxbuf, in bytes (need not be dma-safe) + * @rxbuf: buffer into which data will be read (need not be dma-safe) + * @n_rx: size of rxbuf, in bytes * Context: can sleep * * This performs a half duplex MicroWire style transaction with the