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>
length = **pos;
break;
case 2:
- length = le16_to_cpu(*((u16 *)*pos));
+ length = le16_to_cpu(*((__le16 *)*pos));
break;
default:
return 0;
switch (bytes) {
case 2:
- val = le16_to_cpu(*((u16 *)*pos));
+ val = le16_to_cpu(*((__le16 *)*pos));
break;
case 4:
- val = le32_to_cpu(*((u32 *)*pos));
+ val = le32_to_cpu(*((__le32 *)*pos));
break;
default:
break;