lkml.org 
[lkml]   [2017]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available visible
From
Date
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),
> {},
> };
>
>

\
 
 \ /
  Last update: 2017-05-20 18:35    [W:0.505 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site