projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80ac4b8
)
iio:light:tcs3472 replaces IIO_ST macro with explicit entries to struct scan_type
author
Jonathan Cameron
<jic23@kernel.org>
Wed, 11 Dec 2013 18:45:00 +0000
(18:45 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Tue, 17 Dec 2013 21:39:02 +0000
(21:39 +0000)
IIO_ST is going away as it is a pain to maintain.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/iio/light/tcs3472.c
patch
|
blob
|
history
diff --git
a/drivers/iio/light/tcs3472.c
b/drivers/iio/light/tcs3472.c
index 45df2204614a866e77597d3bead60a16ac085e39..887fecf1f9bb8eccb67a7eb1135428ade7ed71f0 100644
(file)
--- a/
drivers/iio/light/tcs3472.c
+++ b/
drivers/iio/light/tcs3472.c
@@
-67,7
+67,12
@@
struct tcs3472_data {
.channel2 = IIO_MOD_LIGHT_##_color, \
.address = _addr, \
.scan_index = _si, \
- .scan_type = IIO_ST('u', 16, 16, 0), \
+ .scan_type = { \
+ .sign = 'u', \
+ .realbits = 16, \
+ .storagebits = 16, \
+ .endianness = IIO_CPU, \
+ }, \
}
static const int tcs3472_agains[] = { 1, 4, 16, 60 };