spi: rspi: Add rspi_data_{out,in,out_in}() helpers
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Fri, 24 Jan 2014 08:43:54 +0000 (09:43 +0100)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:12 +0000 (11:13 +0100)
commit5974dd5ab470607016d672c1bd0bfef7a2da2b79
treec9b3f9e7a3bc88c8cffca3caf305c90bf24b46f8
parentedcf9726d5a43833c2d2be3dc4bc4d14f7739e54
spi: rspi: Add rspi_data_{out,in,out_in}() helpers

Add helpers rspi_data_{out,in,out_in}() to write, read, or write and
read data to/from the Data Register, taking care of waiting until data
or space is available in the buffers.

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 35301c996046243ca6e41d490dea2823f045614c)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/spi/spi-rspi.c