From: Qipan Li Date: Sun, 25 Aug 2013 13:42:50 +0000 (+0800) Subject: spi/sirf: fix the misunderstanding about len of spi_transfer X-Git-Tag: v3.12-rc1~192^2~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=692fb0fe5aacea861e4006342029cf505a7dbe18;p=pandora-kernel.git spi/sirf: fix the misunderstanding about len of spi_transfer the unit of len of spi_transfer is in bytes, not in spi words. the old codes misunderstood that and thought the len is the amount of spi words. but it is actually how many bytes existing in the spi buffer. this patch fixes that and also rename left_tx_cnt and left_rx_cnt to left_tx_word and left_rx_word to highlight they are in words. Signed-off-by: Qipan Li Signed-off-by: Barry Song Signed-off-by: Mark Brown --- Reading git-diff-tree failed