]> git.baikalelectronics.ru Git - kernel.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)
commit73c7a58628fd13935aeeac018d7f13cf8d7f631e
tree70c1b063182a1a8d28819318d525e8eab6ada0fa
parent82e8d0ef0515b9afb2a3f434c7aa711fcd78e6c4
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