From: Axel Lin Date: Thu, 15 Aug 2013 06:18:46 +0000 (+0800) Subject: spi: altera: Simplify altera_spi_txrx implementation for noirq case X-Git-Tag: v3.12-rc1~192^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72be0ee42ebaf744d4a5cf684ee68dba59d6bac1;p=pandora-kernel.git 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 Acked-by: Thomas Chou Signed-off-by: Mark Brown --- Reading git-diff-tree failed