iio: Fix endianness issue in ak8975_read_axis()
authorPeter Meerwald <pmeerw@pmeerw.net>
Tue, 6 May 2014 08:53:00 +0000 (09:53 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 7 Jun 2014 10:50:34 +0000 (11:50 +0100)
commit8ba42fb7b17649c9ab5b5e79d4e90370a0b4645e
treecea3b4d35b3122f183e5e35c965117618c3caa2b
parent6d4eed9e8e31a855ea6e6969562774e15f7a6849
iio: Fix endianness issue in ak8975_read_axis()

i2c_smbus_read_word_data() does host endian conversion already,
no need for le16_to_cpu()

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Stable@vger.kernel.org
drivers/iio/magnetometer/ak8975.c