spi: oc-tiny: Simplify tiny_spi_txrx_bufs implementation when irq is not used
authorAxel Lin <axel.lin@ingics.com>
Wed, 8 Jan 2014 08:00:04 +0000 (16:00 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 9 Jan 2014 17:58:28 +0000 (17:58 +0000)
Currently we have similar code for (txp && rxp), (txp && !rxp), (!rxp & txp),
and (!txp && !rxp) cases. This patch refactors the code a bit to avoid
duplicate similar code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

No differences found