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)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:23 +0000 (09:21 +0900)
commit67cb50bcf2cb3530805a05d9417675c58c8993e6
tree850619bd4342d2ddfcd74b66ad4ce3db409c687d
parent094445329680e7324d06d58b9e5b78ff9af88040
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