spi: sh-msiof: Refactor sh_msiof_transfer_one()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 20 Jun 2014 10:16:19 +0000 (12:16 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 10:17:36 +0000 (11:17 +0100)
commit0312d59130693adad85c2acfbc0b92a669930a41
treead8fb52e592797d21f69fd44f773a22d9370ab5c
parent75b82e23a4ea20a9e1a48695ff5e01761889dbb3
spi: sh-msiof: Refactor sh_msiof_transfer_one()

  - Move buffer pointer and length setup to the top,
  - Make unsigned values unsigned,
  - Loop over words and increment pointers instead of recalculating them,
    which allows to kill bytes_done.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sh-msiof.c