]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit026505adcc0f1336b095332f03e37febb296c411
tree864415240e91e054adb2fcf1e6f2caa490170891
parent176560f697b8899bcb3d85d4e3f968607a54ebd2
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