iio: hi8435: make in_voltage_sensing_mode_available visible
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Fri, 19 May 2017 14:48:01 +0000 (17:48 +0300)
committerJonathan 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

index 45a92e3..d09cb6f 100644 (file)
@@ -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),
        {},
 };