iio: accel: fxls8962af: fixup buffer scan element type
authorSean Nyekjaer <sean@geanix.com>
Mon, 5 Jun 2023 10:32:21 +0000 (12:32 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Jun 2023 19:05:41 +0000 (20:05 +0100)
commitd1cfbd52ede5e5fabc09992894c5733b4057f159
tree24d15ce63b092e66be8751968a7eef67ed8a8e35
parentc6dab7245604862d86f0b6d764919f470584d24f
iio: accel: fxls8962af: fixup buffer scan element type

Scan elements for x,y,z channels is little endian and requires no bit shifts.
LE vs. BE is controlled in register SENS_CONFIG2 and bit LE_BE, default
value is LE.

Fixes: a3e0b51884ee ("iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230605103223.1400980-1-sean@geanix.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/fxls8962af-core.c