]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf276d0aeacba0f98c84fc28b75a7644b376c2a5c
tree8e0048fbe4467e23787cdc76b80ce04a9f9b5dcc
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
spi: oc-tiny: Simplify tiny_spi_txrx_bufs implementation when irq is not used

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>
drivers/spi/spi-oc-tiny.c