diff options
author | Lorenzo Bianconi | 2018-01-01 19:54:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-01-08 16:03:43 +0100 |
commit | 7b9ebe428266fb7e0a6d769bb3ff3fcb6044b15e (patch) | |
tree | 7f781a24dcfb0b71638cf5ba748bbe1466eb0c32 /drivers/opp | |
parent | iio: humidity: hts221: move common code in hts221_core (diff) | |
download | kernel-qcow2-linux-7b9ebe428266fb7e0a6d769bb3ff3fcb6044b15e.tar.gz kernel-qcow2-linux-7b9ebe428266fb7e0a6d769bb3ff3fcb6044b15e.tar.xz kernel-qcow2-linux-7b9ebe428266fb7e0a6d769bb3ff3fcb6044b15e.zip |
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: 290a6ce11d93 (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>
Diffstat (limited to 'drivers/opp')
0 files changed, 0 insertions, 0 deletions