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)
commite826a7ff69b285ea295144303653c01f781ea9dc
tree8e0048fbe4467e23787cdc76b80ce04a9f9b5dcc
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
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
This page took 0.024662 seconds and 5 git commands to generate.