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: [PATCH 1/3] iio: Add missing modifier names to core
Date: Sun, 21 Jun 2015 14:24:50 +0100	[thread overview]
Message-ID: <5586BB22.9030104@kernel.org> (raw)
In-Reply-To: <1434837152-30830-1-git-send-email-pmeerw@pmeerw.net>

On 20/06/15 22:52, Peter Meerwald wrote:
> some are documented, others are in iio_event_monitor.c which
> was recently moved from staging
> 
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This is legacy of the older event description stuff that typically
only used these codes for exporting to userspace (they weren't used
to build attribute names).  Given how we do it now, they can
be used (particularly for enable attributes) so we do indeed need the whole
set.

Applied to the togreg branch of iio.git

Thanks,

Jonathan
> ---
>  drivers/iio/industrialio-core.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
> index 4df97f6..f3bf00c 100644
> --- a/drivers/iio/industrialio-core.c
> +++ b/drivers/iio/industrialio-core.c
> @@ -81,6 +81,14 @@ static const char * const iio_modifier_names[] = {
>  	[IIO_MOD_X] = "x",
>  	[IIO_MOD_Y] = "y",
>  	[IIO_MOD_Z] = "z",
> +	[IIO_MOD_X_AND_Y] = "x&y",
> +	[IIO_MOD_X_AND_Z] = "x&z",
> +	[IIO_MOD_Y_AND_Z] = "y&z",
> +	[IIO_MOD_X_AND_Y_AND_Z] = "x&y&z",
> +	[IIO_MOD_X_OR_Y] = "x|y",
> +	[IIO_MOD_X_OR_Z] = "x|z",
> +	[IIO_MOD_Y_OR_Z] = "y|z",
> +	[IIO_MOD_X_OR_Y_OR_Z] = "x|y|z",
>  	[IIO_MOD_ROOT_SUM_SQUARED_X_Y] = "sqrt(x^2+y^2)",
>  	[IIO_MOD_SUM_SQUARED_X_Y_Z] = "x^2+y^2+z^2",
>  	[IIO_MOD_LIGHT_BOTH] = "both",
> 

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

      parent reply	other threads:[~2015-06-21 13:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-20 21:52 [PATCH 1/3] iio: Add missing modifier names to core Peter Meerwald
2015-06-20 21:52 ` [PATCH 2/3] tools: iio: Add missing names to iio_event_monitor Peter Meerwald
2015-06-21  9:47   ` Jonathan Cameron
2015-06-20 21:52 ` [PATCH 3/3] tools: iio: Set CC using $(CROSS_COMPILE) Peter Meerwald
2015-06-21  9:39   ` Jonathan Cameron
2015-06-21 13:24 ` 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=5586BB22.9030104@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