From: Nikita Yushchenko Date: Fri, 19 May 2017 14:48:01 +0000 (+0300) Subject: iio: hi8435: make in_voltage_sensing_mode_available visible X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bd7026992f203d7a0b7e26d53b0b05739454f1df;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jonathan Cameron --- 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), {}, };