From: Ricardo Ribalda Delgado Date: Fri, 23 Jan 2015 16:08:35 +0000 (+0100) Subject: spi/xilinx: Simplify data read from the Rx FIFO X-Git-Tag: fixes-v4.0-rc1~184^2^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5d348dffa7ca1f072ff5526171a2b88bbffc24b;p=pandora-kernel.git spi/xilinx: Simplify data read from the Rx FIFO The number of words in the read buffer will be exactly the same as the number of words written on write buffer, once the transaction has finished. Instead of cheking the rx_empty flags for every word simply save the number of words written by fill_tx_fifo. Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Mark Brown --- Reading git-diff-tree failed