iio: imu: fxos8700: fix swapped ACCEL and MAGN channels readback
authorCarlos Song <carlos.song@nxp.com>
Thu, 8 Dec 2022 07:19:06 +0000 (15:19 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 28 Dec 2022 17:20:04 +0000 (17:20 +0000)
commitc68b44bc7d9b1469774a1c985ee71d2cbc5ebef5
treec67df4eda881be02f7132ae55430304ec8a120b1
parent429e1e8ec696e0e7a0742904e3dc2f83b7b23dfb
iio: imu: fxos8700: fix swapped ACCEL and MAGN channels readback

Because ACCEL and MAGN channels data register base address is
swapped the accelerometer and magnetometer channels readback is
swapped.

Fixes: 84e5ddd5c46e ("iio: imu: Add support for the FXOS8700 IMU")
Signed-off-by: Carlos Song <carlos.song@nxp.com>
Link: https://lore.kernel.org/r/20221208071911.2405922-3-carlos.song@nxp.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/fxos8700_core.c