diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-06-23 15:04:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-03 14:52:10 +0200 |
commit | cb76b1ca9174aa29d4c7c0f4aef113be203b600c (patch) | |
tree | 276a7bb620b562e6aab2f248a1e550284af8d284 /drivers/spi | |
parent | spi: rspi: Drop variable "error" in qspi_trigger_transfer_out_in() (diff) | |
download | linux-cb76b1ca9174aa29d4c7c0f4aef113be203b600c.tar.xz linux-cb76b1ca9174aa29d4c7c0f4aef113be203b600c.zip |
spi: rspi: Make qspi_set_send_trigger() return "unsigned int"
qspi_set_send_trigger() returns an unsigned value, so make it return
"unsigned int".
Update the loop variables qspi_trigger_transfer_out_int() to match the
above.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-rspi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 9a71fa2e53a9..818843336932 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c @@ -383,7 +383,8 @@ static void qspi_update(const struct rspi_data *rspi, u8 mask, u8 val, u8 reg) rspi_write8(rspi, data, reg); } -static int qspi_set_send_trigger(struct rspi_data *rspi, unsigned int len) +static unsigned int qspi_set_send_trigger(struct rspi_data *rspi, + unsigned int len) { unsigned int n; @@ -724,7 +725,8 @@ static int rspi_rz_transfer_one(struct spi_master *master, static int qspi_trigger_transfer_out_in(struct rspi_data *rspi, const u8 *tx, u8 *rx, unsigned int len) { - int i, n, ret; + unsigned int i, n; + int ret; while (len > 0) { n = qspi_set_send_trigger(rspi, len); |