Skip to content

Commit

Permalink
iio: hi8435: make in_voltage_sensing_mode_available visible
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nikita Yushchenko authored and Jonathan Cameron committed May 20, 2017
1 parent ee19ac3 commit bd70269
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iio/adc/hi8435.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
{},
};

Expand Down

0 comments on commit bd70269

Please sign in to comment.