From: Mark Brown Date: Tue, 10 May 2011 21:55:21 +0000 (+0200) Subject: ASoC: Remove byte swap in 4x12 SPI write X-Git-Tag: v3.0-rc1~347^2~1^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=063b7cc43fb2413238095b81f9b4a2ee2c52056b;p=pandora-kernel.git ASoC: Remove byte swap in 4x12 SPI write snd_soc_4_12_spi_write() contains a byte swap. Since this code was written for an Analog CODEC on a Blackfin reference board it appears that this is done because while Blackfin is little endian the CODEC is big endian (as are most CODECs). Push this up into the generic 4x12 write function and use cpu_to_be16() to do the byte swap so things are more regular and things work on both CPU endiannesses. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- Reading git-diff-tree failed