]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
spi: rspi: Extract rspi_pio_transfer()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 2 Jun 2014 13:38:07 +0000 (15:38 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 2 Jun 2014 14:49:33 +0000 (15:49 +0100)
commit6837b8e91d2a080293c30d5fe42d9692390091fa
tree81a3f605a81ff224e0267364461245c47cf2d85d
parentb42e03596db3d45980c976c8124fdc323f031dc4
spi: rspi: Extract rspi_pio_transfer()

The various PIO loops are very similar. Consolidate into a single
function rspi_pio_transfer().

Both buffer pointers can be NULL, as RSPI supports TX-only mode, and
Dual/Quad SPI Transfers are unidirectional.

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