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:
cb4417f
)
iio:light:adjd_s311 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:08:56 +0000
(21:08 +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/adjd_s311.c
patch
|
blob
|
history
diff --git
a/drivers/iio/light/adjd_s311.c
b/drivers/iio/light/adjd_s311.c
index 83d15c5baf646cd61de0ecf4b87fa054b1df0f49..f3068477b4668e8def14993af2c93f061a730bd5 100644
(file)
--- a/
drivers/iio/light/adjd_s311.c
+++ b/
drivers/iio/light/adjd_s311.c
@@
-155,7
+155,12
@@
done:
BIT(IIO_CHAN_INFO_INT_TIME), \
.channel2 = (IIO_MOD_LIGHT_##_color), \
.scan_index = (_scan_idx), \
- .scan_type = IIO_ST('u', 10, 16, 0), \
+ .scan_type = { \
+ .sign = 'u', \
+ .realbits = 10, \
+ .storagebits = 16, \
+ .endianness = IIO_CPU, \
+ }, \
}
static const struct iio_chan_spec adjd_s311_channels[] = {