From 692fb0fe5aacea861e4006342029cf505a7dbe18 Mon Sep 17 00:00:00 2001 From: Qipan Li Date: Sun, 25 Aug 2013 21:42:50 +0800 Subject: [PATCH] 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-format-patch failed