Skip to content

Commit cb2116f

Browse files
tachicialexjic23
authored andcommitted
iio: accel: adxl372: Set iio_chan BE
Data stored in the iio-buffer is BE and this should be specified in the iio_chan_spec struct. Fixes: f4f55ce ("iio:adxl372: Add FIFO and interrupts support") Signed-off-by: Alexandru Tachici <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent b500c08 commit cb2116f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/accel/adxl372.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ static const struct adxl372_axis_lookup adxl372_axis_lookup_table[] = {
237237
.realbits = 12, \
238238
.storagebits = 16, \
239239
.shift = 4, \
240+
.endianness = IIO_BE, \
240241
}, \
241242
}
242243

0 commit comments

Comments
 (0)