From: Jonathan Cameron Date: Wed, 11 Dec 2013 18:45:00 +0000 (+0000) Subject: staging:iio:mag:hmc5843 fix incorrect endianness of channel as a result of missuse... X-Git-Tag: v3.13-rc5~26^2~9^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5fe7a41ad51e0c2df8381e9c85d7343b36b2c1e;p=pandora-kernel.git staging:iio:mag:hmc5843 fix incorrect endianness of channel as a result of missuse of the IIO_ST macro. This driver sets the shift value equal to IIO_BE (or 1) rather than setting that to 0 and specificying the endianness. This means the channel type is missreported as [be|le]:u16/16>>1 where the be|le is dependent on the cpu native endianness, rather than be:u16/16>>0 resulting in any userspace code using this information, miss converting the channel and generating thoroughly trashed data. Signed-off-by: Jonathan Cameron Acked-by: Lars-Peter Clausen Cc: stable@vger.kernel.org --- Reading git-diff-tree failed