summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/hi8435.c
diff options
context:
space:
mode:
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>2017-05-19 16:48:01 +0200
committerJonathan Cameron <jic23@kernel.org>2017-05-20 18:35:00 +0200
commitbd7026992f203d7a0b7e26d53b0b05739454f1df (patch)
tree1c5cded7bdd916e6b91e9dfba5eed7736b57ca39 /drivers/iio/adc/hi8435.c
parentiio: hi8435: avoid garbage event at first enable (diff)
downloadlinux-bd7026992f203d7a0b7e26d53b0b05739454f1df.tar.xz
linux-bd7026992f203d7a0b7e26d53b0b05739454f1df.zip
iio: hi8435: make in_voltage_sensing_mode_available visible
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>
Diffstat (limited to 'drivers/iio/adc/hi8435.c')
-rw-r--r--drivers/iio/adc/hi8435.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/hi8435.c b/drivers/iio/adc/hi8435.c
index 45a92e3e8f2b..d09cb6ff8044 100644
--- 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),
{},
};