lkml.org 
[lkml]   [2020]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/5] iio: accel: adxl372: Set iio_chan BE
Date
Data stored in the iio-buffer is BE and this
should be specified in the iio_chan_spec struct.

Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
---
drivers/iio/accel/adxl372.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index bb6c2bf1a457..538e5053a946 100644
--- a/drivers/iio/accel/adxl372.c
+++ b/drivers/iio/accel/adxl372.c
@@ -237,6 +237,7 @@ static const struct adxl372_axis_lookup adxl372_axis_lookup_table[] = {
.realbits = 12, \
.storagebits = 16, \
.shift = 4, \
+ .endianness = IIO_BE, \
}, \
}

--
2.20.1
\
 
 \ /
  Last update: 2020-02-14 10:31    [W:0.046 / U:5.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site