* [PATCH] iio: accel: adxl372: Set iio_chan BE
@ 2020-02-19 14:31 Alexandru Tachici
2020-02-21 13:09 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Alexandru Tachici @ 2020-02-19 14:31 UTC (permalink / raw)
To: linux-iio, linux-kernel; +Cc: jic23, Alexandru Tachici
Data stored in the iio-buffer is BE and this
should be specified in the iio_chan_spec struct.
Fixes: f4f55ce38e5f8 ("iio:adxl372: Add FIFO and interrupts support")
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 9c6eebf379ca..3eb413df3c8d 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: accel: adxl372: Set iio_chan BE
2020-02-19 14:31 [PATCH] iio: accel: adxl372: Set iio_chan BE Alexandru Tachici
@ 2020-02-21 13:09 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2020-02-21 13:09 UTC (permalink / raw)
To: Alexandru Tachici; +Cc: linux-iio, linux-kernel
On Wed, 19 Feb 2020 16:31:12 +0200
Alexandru Tachici <alexandru.tachici@analog.com> wrote:
> Data stored in the iio-buffer is BE and this
> should be specified in the iio_chan_spec struct.
>
> Fixes: f4f55ce38e5f8 ("iio:adxl372: Add FIFO and interrupts support")
> Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Applied to the fixes-togreg branch of iio.git and marked for stable.
Thanks,
Jonathan
> ---
> 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 9c6eebf379ca..3eb413df3c8d 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, \
> }, \
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-21 13:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-19 14:31 [PATCH] iio: accel: adxl372: Set iio_chan BE Alexandru Tachici
2020-02-21 13:09 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).