Re: [PATCHv2] iio: light: isl29125: Add scale_available information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20/06/15 22:51, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@xxxxxxxxxx>
Applied to the togreg branch of iio.git - initially pushed out as
testing etc etc.

Thanks

Jonathan
> ---
> v1 didn't even compile, sorry
> 
>  drivers/iio/light/isl29125.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/drivers/iio/light/isl29125.c b/drivers/iio/light/isl29125.c
> index c82f4a6..b3cbbe8 100644
> --- a/drivers/iio/light/isl29125.c
> +++ b/drivers/iio/light/isl29125.c
> @@ -197,9 +197,21 @@ done:
>  	return IRQ_HANDLED;
>  }
>  
> +static IIO_CONST_ATTR(scale_available, "0.005722 0.152590");
> +
> +static struct attribute *isl29125_attributes[] = {
> +	&iio_const_attr_scale_available.dev_attr.attr,
> +	NULL
> +};
> +
> +static const struct attribute_group isl29125_attribute_group = {
> +	.attrs = isl29125_attributes,
> +};
> +
>  static const struct iio_info isl29125_info = {
>  	.read_raw = isl29125_read_raw,
>  	.write_raw = isl29125_write_raw,
> +	.attrs = &isl29125_attribute_group,
>  	.driver_module = THIS_MODULE,
>  };
>  
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux