projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7264abc
)
spi: rspi: Replaces "n" by "len" in qspi_transfer_*()
author
DongCV
<cv-dong@jinso.co.jp>
Wed, 15 Feb 2017 10:50:52 +0000
(19:50 +0900)
committer
Mark Brown
<broonie@kernel.org>
Thu, 16 Feb 2017 18:25:27 +0000
(18:25 +0000)
This patch replaced "n" by "len" bytes of data in qspi_transfer_in() and
qspi_transfer_out() function. This will make improving readability.
Signed-off-by: DongCV <cv-dong@jinso.co.jp>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-rspi.c
b/drivers/spi/spi-rspi.c
index 2ee130138066717fc244c0920e6d4c646a56e754..bc3c8686f4d95fb5cb5f7973423498a0d9f3eb5e 100644
(file)
--- a/
drivers/spi/spi-rspi.c
+++ b/
drivers/spi/spi-rspi.c
@@
-808,7
+808,7
@@
static int qspi_transfer_out(struct rspi_data *rspi, struct spi_transfer *xfer)
for (i = 0; i < len; i++)
rspi_write_data(rspi, *tx++);
} else {
- ret = rspi_pio_transfer(rspi, tx, NULL, n);
+ ret = rspi_pio_transfer(rspi, tx, NULL,
le
n);
if (ret < 0)
return ret;
}
@@
-845,7
+845,7
@@
static int qspi_transfer_in(struct rspi_data *rspi, struct spi_transfer *xfer)
for (i = 0; i < len; i++)
*rx++ = rspi_read_data(rspi);
} else {
- ret = rspi_pio_transfer(rspi, NULL, rx, n);
+ ret = rspi_pio_transfer(rspi, NULL, rx,
le
n);
if (ret < 0)
return ret;
}