Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1645657

[PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available visible

From Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Newsgroups linux.kernel
Subject [PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available visible
Date 2017-05-19 16:50 +0200
Message-ID <tIRo5-3Bo-3@gated-at.bofh.it> (permalink)
References <tIRo5-3Bo-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Possible values of sensing_mode are encoded with strings and actual
atrings used are not obvious.

Provide a hint by enabling in_voltage_sensing_mode_available attribute.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
---
 drivers/iio/adc/hi8435.c | 1 +
 1 file changed, 1 insertion(+)

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),
 	{},
 };
 
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available visible Nikita Yushchenko <nikita.yoush@cogentembedded.com> - 2017-05-19 16:50 +0200
  Re: [PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available  visible Jonathan Cameron <jic23@kernel.org> - 2017-05-20 18:40 +0200

csiph-web