]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: ti-qspi: Simplify qspi_write_msg and qspi_read_msg implementation
authorAxel Lin <axel.lin@ingics.com>
Sun, 12 Jan 2014 06:40:22 +0000 (14:40 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 13 Jan 2014 10:15:13 +0000 (10:15 +0000)
commit3ab546205411a245ef0f60ec708467a072855c6f
tree70c1b063182a1a8d28819318d525e8eab6ada0fa
parent52690a6a868719d1d2f9e12b039c05d966600d41
spi: ti-qspi: Simplify qspi_write_msg and qspi_read_msg implementation

Make the unit of wlen to be byte, and simplify the code to avoid duplicate
code for different wlen cases.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-ti-qspi.c