linux/drivers/iio/imu/st_lsm6dsx
Lorenzo Bianconi 7b9ebe4282 iio: imu: st_lsm6dsx: fix endianness in st_lsm6dsx_read_oneshot()
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-01-08 16:03:43 +01:00
..
Kconfig iio: imu: st_lsm6dsx: add support to lsm6ds3h 2017-02-04 12:25:05 +00:00
Makefile
st_lsm6dsx_buffer.c iio: imu: st_lsm6dsx: add FIFO ops data structure 2017-10-09 20:51:01 +01:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: fix endianness in st_lsm6dsx_read_oneshot() 2018-01-08 16:03:43 +01: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
st_lsm6dsx.h iio: imu: st_lsm6dsx: add FIFO ops data structure 2017-10-09 20:51:01 +01:00