spi: rspi: Merge rspi_send_pio() and rspi_receive_pio()
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Fri, 24 Jan 2014 08:43:56 +0000 (09:43 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 27 Jan 2014 20:02:10 +0000 (20:02 +0000)
commit8449fd76deb9ac67a15a6fb8ead7bb4595d019d2
tree864415240e91e054adb2fcf1e6f2caa490170891
parenteb557f75269e82dd26a79be536eca223ddc3eaf7
spi: rspi: Merge rspi_send_pio() and rspi_receive_pio()

rspi_send_pio() and rspi_receive_pio() are very similar:
  - the former only sends data, using TX Only Mode,
  - the latter sends and receives full duplex data to/from the hardware,
    but uses dummy transmit data.
Merge them into rspi_transfer_out_in(), now supporting full duplex if
needed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-rspi.c