projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a3e43
)
iio: Fix mag3110 scan_type
author
Peter Meerwald
<pmeerw@pmeerw.net>
Tue, 29 Oct 2013 00:59:00 +0000
(
00:59
+0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 9 Nov 2013 12:12:33 +0000
(12:12 +0000)
last argument of IIO_ST is shift, not endianness
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/mag3110.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/magnetometer/mag3110.c
b/drivers/iio/magnetometer/mag3110.c
index 783c5b417356e0ecaf0d3c095f33c2b4a24fa496..becf54496967aee126fb6449b54341394645d9bd 100644
(file)
--- 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[] = {