linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] iio: Fix mag3110 scan_type
@ 2013-10-29  0:59 Peter Meerwald
  2013-10-29  0:59 ` [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies Peter Meerwald
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Peter Meerwald @ 2013-10-29  0:59 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

last argument of IIO_ST is shift, not endianness

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/iio/magnetometer/mag3110.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/iio/magnetometer/mag3110.c b/drivers/iio/magnetometer/mag3110.c
index 783c5b4..becf544 100644
--- a/drivers/iio/magnetometer/mag3110.c
+++ b/drivers/iio/magnetometer/mag3110.c
@@ -250,7 +250,12 @@ done:
 	.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SAMP_FREQ) | \
 		BIT(IIO_CHAN_INFO_SCALE), \
 	.scan_index = idx, \
-	.scan_type = IIO_ST('s', 16, 16, IIO_BE), \
+	.scan_type = { \
+		.sign = 's', \
+		.realbits = 16, \
+		.storagebits = 16, \
+		.endianness = IIO_BE, \
+	}, \
 }
 
 static const struct iio_chan_spec mag3110_channels[] = {
-- 
1.8.4.1


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

end of thread, other threads:[~2013-11-09 11:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29  0:59 [PATCH 1/4] iio: Fix mag3110 scan_type Peter Meerwald
2013-10-29  0:59 ` [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies Peter Meerwald
2013-11-09 12:15   ` Jonathan Cameron
2013-10-29  0:59 ` [PATCH 3/4] iio: Fix tcs3472 " Peter Meerwald
2013-11-09 12:16   ` Jonathan Cameron
2013-10-29  0:59 ` [PATCH 4/4] staging:iio: Fix hmc5843 " Peter Meerwald
2013-11-09 12:16   ` Jonathan Cameron
2013-11-09 12:15 ` [PATCH 1/4] iio: Fix mag3110 scan_type 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).