]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:18 +0000 (11:28 +0100)
commit3d054800e9817ca122f6f2cdf656be95232bf655
tree6750ca84070212dddc9b6cbb8f6f0c9d1e4749c1
parent81d03bffba18c0f0f59f99cb17a92e78b3111734
iio: imu: fxos8700: fix swapped ACCEL and MAGN channels readback

commit c68b44bc7d9b1469774a1c985ee71d2cbc5ebef5 upstream.

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

Fixes: 2c7e7594a2fd ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/imu/fxos8700_core.c