iio: Fix endianness issue in ak8975_read_axis()
authorPeter Meerwald <pmeerw@pmeerw.net>
Tue, 6 May 2014 08:53:00 +0000 (09:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:12:41 +0000 (15:12 -0400)
commita6e3a4df4c6888337dcbfce8b831c98cd3c886a4
treea96ed891b0f2b5bfe94e172bba0e89d24e82a3d1
parent9e655732466125a675a3bb8b0ebedfc921dfdcd5
iio: Fix endianness issue in ak8975_read_axis()

commit 8ba42fb7b17649c9ab5b5e79d4e90370a0b4645e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/magnetometer/ak8975.c