iio: imu: fxos8700: fix swapped ACCEL and MAGN channels readback
stable inclusion from stable-v5.10.168 commit 9d6502ed6314fd62ba7df569df7ee1f682ccda9e category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9d6502ed6314fd62ba7df569df7ee1f682ccda9e ---------------------------------------------------- commit c68b44bc upstream. Because ACCEL and MAGN channels data register base address is swapped the accelerometer and magnetometer channels readback is swapped. Fixes: 84e5ddd5 ("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> Signed-off-by:
zhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
Loading
Please sign in to comment