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


Groups > linux.kernel > #1645657 > unrolled thread

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

Started byNikita Yushchenko <nikita.yoush@cogentembedded.com>
First post2017-05-19 16:50 +0200
Last post2017-05-20 18:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [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

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

FromNikita Yushchenko <nikita.yoush@cogentembedded.com>
Date2017-05-19 16:50 +0200
Subject[PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available visible
Message-ID<tIRo5-3Bo-3@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1646148 — Re: [PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available visible

FromJonathan Cameron <jic23@kernel.org>
Date2017-05-20 18:40 +0200
SubjectRe: [PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available visible
Message-ID<tJfA5-3RZ-3@gated-at.bofh.it>
In reply to#1645657
On 19/05/17 15:48, Nikita Yushchenko wrote:
> Possible values of sensing_mode are encoded with strings and actual
> atrings used are not obvious.
strings <fixed>
> 
> Provide a hint by enabling in_voltage_sensing_mode_available attribute.
> 
> Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Applied to the togreg branch of iio.git and pushed out as testing.

Thanks,

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web