public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Peter Meerwald <pmeerw@pmeerw.net>, linux-iio@vger.kernel.org
Subject: Re: [PATCHv2] iio: light: isl29125: Add scale_available information
Date: Sun, 21 Jun 2015 10:48:34 +0100	[thread overview]
Message-ID: <55868872.5030406@kernel.org> (raw)
In-Reply-To: <1434837098-30771-1-git-send-email-pmeerw@pmeerw.net>

On 20/06/15 22:51, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
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

      reply	other threads:[~2015-06-21  9:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-20 21:51 [PATCHv2] iio: light: isl29125: Add scale_available information Peter Meerwald
2015-06-21  9:48 ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55868872.5030406@kernel.org \
    --to=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox