]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@linaro.org>
Mon, 27 Jan 2014 20:02:09 +0000 (20:02 +0000)
commita237e44e119c91a8db8805306f6cbe578e303538
tree047c5fb2bbe0ed3259a488a18da18d4fe7dc5b07
parent519cd6c653d337e10c2e816ed00f73cabcf2416f
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>
drivers/spi/spi-rspi.c