spi/dw_spi: clean the cs_control code
authorFeng Tang <feng.tang@intel.com>
Tue, 7 Sep 2010 07:52:06 +0000 (15:52 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 8 Sep 2010 16:50:00 +0000 (10:50 -0600)
commite3e55ff5854655d8723ad8b307f02515aecc3df5
tree7c30c2c00b7c8f8ce9a95d371b3ccd1408188d7f
parentcbcc062abb16d39839b3d8d4e3d20360fc21eb58
spi/dw_spi: clean the cs_control code

commit 052dc7c45i "spi/dw_spi: conditional transfer mode change"
introduced cs_control code, which has a bug by using bit offset
for spi mode to set transfer mode in control register. Also it
forces devices who don't need cs_control to re-configure the
control registers for each spi transfer. This patch will fix them

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/dw_spi.c
include/linux/spi/dw_spi.h