mirror of
https://github.com/torvalds/linux.git
synced 2026-05-14 13:43:20 -04:00
commit7b9ebe4282upstream. Apply le16_to_cpu() to data read from the sensor in order to take into account architecture endianness Fixes:290a6ce11d(iio: imu: add support to lsm6dsx driver) Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>