linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: adc: ad7768-1: Fix channel endian spec
@ 2020-04-29 10:45 Sergiu Cuciurean
  2020-05-03 11:42 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Sergiu Cuciurean @ 2020-04-29 10:45 UTC (permalink / raw)
  To: linux-iio, linux-kernel, jic23
  Cc: knaack.h, Michael.Hennerich, Sergiu Cuciurean

This change removes the endian description from the iio channel spec.
In this way, the default (IIO_CPU) endian will be used, matching the
be32_to_cpu() conversion from ad7768_spi_reg_read().

Fixes: 8a15c73a9bcfe ("iio: adc: Add AD7768-1 ADC basic support")

Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@analog.com>
---
 drivers/iio/adc/ad7768-1.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c
index a0027797a7fe..99da13c3511a 100644
--- a/drivers/iio/adc/ad7768-1.c
+++ b/drivers/iio/adc/ad7768-1.c
@@ -144,7 +144,6 @@ static const struct iio_chan_spec ad7768_channels[] = {
 			.realbits = 24,
 			.storagebits = 32,
 			.shift = 8,
-			.endianness = IIO_BE,
 		},
 	},
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-03 11:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 10:45 [PATCH] iio: adc: ad7768-1: Fix channel endian spec Sergiu Cuciurean
2020-05-03 11:42 ` 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).