diff options
author | 2013-08-15 14:18:46 +0800 | |
---|---|---|
committer | 2013-08-28 14:18:45 +0100 | |
commit | 72be0ee42ebaf744d4a5cf684ee68dba59d6bac1 (patch) | |
tree | 09e081812af8a2da2b288d8e1ea30fdf31853edc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 3.11-rc7 (diff) | |
download | linux-dev-72be0ee42ebaf744d4a5cf684ee68dba59d6bac1.tar.xz linux-dev-72be0ee42ebaf744d4a5cf684ee68dba59d6bac1.zip |
spi: altera: Simplify altera_spi_txrx implementation for noirq case
This patch simplifies the code and makes it better in readability.
Now the logic in the while loop is simply
"write to ALTERA_SPI_TXDATA then read from ALTERA_SPI_TXDATA".
There is a slightly logic change because now we avoid a read-write cycle when
hw->len is 0. Since the code in bitbang library will call bitbang->txrx_bufs()
only when t->len is not 0, this is not a problem.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions