]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Use __leXX for little endian data
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 20 Apr 2015 12:52:44 +0000 (13:52 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2015 14:38:26 +0000 (15:38 +0100)
commit7e7d431b91005798b874d9818d5adf4c25a04d46
tree46aa3878e8a92a45ea5b44c4db9ba36eeb16d94b
parent5795d9ef15060461b69ef9a9d71b49f27982256d
ASoC: wm_adsp: Use __leXX for little endian data

Using uXX for little endian data, was triggering some warnings through
sparse:

sound/soc/codecs/wm_adsp.c:716:26: sparse: cast to restricted __le16
sound/soc/codecs/wm_adsp.c:736:23: sparse: cast to restricted __le16
sound/soc/codecs/wm_adsp.c:739:23: sparse: cast to restricted __le32

Correct this by changing the casts to use __leXX instead of uXX.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c