linux_dsm_epyc7002/drivers/iio/accel
Irina Tirdea 2215f31dc6 iio: accel: bmc150: fix endianness when reading axes
For big endian platforms, reading the axes will return
invalid values.

The device stores each axis value in a 16 bit little
endian register. The driver uses regmap_read_bulk to get
the axis value, resulting in a 16 bit little endian value.
This needs to be converted to cpu endianness to work
on big endian platforms.

Fix endianness for big endian platforms by converting
the values for the axes read from little endian to
cpu.

This is also partially fixed in commit b6fb9b6d6552 ("iio:
accel: bmc150: optimize transfers in trigger handler").

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-04-03 11:16:11 +01:00
..
bma180.c
bmc150-accel-core.c iio: accel: bmc150: fix endianness when reading axes 2016-04-03 11:16:11 +01:00
bmc150-accel-i2c.c
bmc150-accel-spi.c
bmc150-accel.h
hid-sensor-accel-3d.c
Kconfig Merge 4.5-rc3 into staging-next 2016-02-07 17:34:04 -08:00
kxcjk-1013.c
kxsd9.c
Makefile
mma7455_core.c
mma7455_i2c.c
mma7455_spi.c
mma7455.h
mma8452.c iio: mma8452: add support for MMA8451Q 2016-01-23 16:28:52 +00:00
mma9551_core.c
mma9551_core.h
mma9551.c
mma9553.c
mxc4005.c
mxc6255.c
ssp_accel_sensor.c
st_accel_buffer.c
st_accel_core.c iio: st_sensors: support active-low interrupts 2016-01-10 12:35:32 +00:00
st_accel_i2c.c
st_accel_spi.c
st_accel.h
stk8ba50.c
stk8312.c