diff options
author | Sean Nyekjaer <sean@geanix.com> | 2023-06-05 12:32:21 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-06-05 20:05:41 +0100 |
commit | d1cfbd52ede5e5fabc09992894c5733b4057f159 (patch) | |
tree | 24d15ce63b092e66be8751968a7eef67ed8a8e35 /drivers/iio | |
parent | c6dab7245604862d86f0b6d764919f470584d24f (diff) | |
download | linux-d1cfbd52ede5e5fabc09992894c5733b4057f159.tar.gz linux-d1cfbd52ede5e5fabc09992894c5733b4057f159.tar.bz2 linux-d1cfbd52ede5e5fabc09992894c5733b4057f159.zip |
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/accel/fxls8962af-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c index 0d672b1469e8..f5014f6720ea 100644 --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -724,8 +724,7 @@ static const struct iio_event_spec fxls8962af_event[] = { .sign = 's', \ .realbits = 12, \ .storagebits = 16, \ - .shift = 4, \ - .endianness = IIO_BE, \ + .endianness = IIO_LE, \ }, \ .event_spec = fxls8962af_event, \ .num_event_specs = ARRAY_SIZE(fxls8962af_event), \ |