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:
ee19ac3
)
iio: hi8435: make in_voltage_sensing_mode_available visible
author
Nikita Yushchenko
<nikita.yoush@cogentembedded.com>
Fri, 19 May 2017 14:48:01 +0000
(17:48 +0300)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 20 May 2017 16:35:00 +0000
(17:35 +0100)
Possible values of sensing_mode are encoded with strings and actual
strings used are not obvious.
Provide a hint by enabling in_voltage_sensing_mode_available attribute.
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/hi8435.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/hi8435.c
b/drivers/iio/adc/hi8435.c
index 45a92e3e8f2b6e88289eac6073a251e3983135bd..d09cb6ff8044d5f783e5d00715e4a91dd1d2d643 100644
(file)
--- a/
drivers/iio/adc/hi8435.c
+++ b/
drivers/iio/adc/hi8435.c
@@
-356,6
+356,7
@@
static const struct iio_enum hi8435_sensing_mode = {
static const struct iio_chan_spec_ext_info hi8435_ext_info[] = {
IIO_ENUM("sensing_mode", IIO_SEPARATE, &hi8435_sensing_mode),
+ IIO_ENUM_AVAILABLE("sensing_mode", &hi8435_sensing_mode),
{},
};