1
0
Fork 0
remarkable-linux/drivers/iio/imu/st_lsm6dsx
Lorenzo Bianconi af00a24c9e iio: imu: st_lsm6dsx: fix endianness in st_lsm6dsx_read_oneshot()
commit 7b9ebe4282 upstream.

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>
2018-03-28 18:24:49 +02:00
..
Kconfig iio: imu: st_lsm6dsx: add support to lsm6ds3h 2017-02-04 12:25:05 +00:00
Makefile
st_lsm6dsx.h iio: imu: st_lsm6dsx: add system power management support 2017-04-30 17:55:15 +01:00
st_lsm6dsx_buffer.c iio: imu: st_lsm6dsx: support open drain mode 2017-07-01 10:17:00 +01:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: fix endianness in st_lsm6dsx_read_oneshot() 2018-03-28 18:24:49 +02:00
st_lsm6dsx_i2c.c iio: imu: st_lsm6dsx: add system power management support 2017-04-30 17:55:15 +01:00
st_lsm6dsx_spi.c iio: imu: st_lsm6dsx: add system power management support 2017-04-30 17:55:15 +01:00