From: Jonathan Cameron <jic23@kernel.org>
To: Peter Meerwald <pmeerw@pmeerw.net>, linux-iio@vger.kernel.org
Subject: Re: [PATCH 2/3] tools: iio: Add missing names to iio_event_monitor
Date: Sun, 21 Jun 2015 10:47:02 +0100 [thread overview]
Message-ID: <55868816.1030702@kernel.org> (raw)
In-Reply-To: <1434837152-30830-2-git-send-email-pmeerw@pmeerw.net>
On 20/06/15 22:52, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git - initially pushed out as
testing then languishing there or in togreg for a least a couple of weeks
given the merge window is about to open.
Thanks,
Jonathan
> ---
> tools/iio/iio_event_monitor.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c
> index 427c271..2a89616 100644
> --- a/tools/iio/iio_event_monitor.c
> +++ b/tools/iio/iio_event_monitor.c
> @@ -51,6 +51,9 @@ static const char * const iio_chan_type_name_spec[] = {
> [IIO_HUMIDITYRELATIVE] = "humidityrelative",
> [IIO_ACTIVITY] = "activity",
> [IIO_STEPS] = "steps",
> + [IIO_ENERGY] = "energy",
> + [IIO_DISTANCE] = "distance",
> + [IIO_VELOCITY] = "velocity",
> };
>
> static const char * const iio_ev_type_text[] = {
> @@ -99,6 +102,7 @@ static const char * const iio_modifier_names[] = {
> [IIO_MOD_JOGGING] = "jogging",
> [IIO_MOD_WALKING] = "walking",
> [IIO_MOD_STILL] = "still",
> + [IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z] = "sqrt(x^2+y^2+z^2)",
> };
>
> static bool event_is_known(struct iio_event_data *event)
> @@ -130,6 +134,9 @@ static bool event_is_known(struct iio_event_data *event)
> case IIO_HUMIDITYRELATIVE:
> case IIO_ACTIVITY:
> case IIO_STEPS:
> + case IIO_ENERGY:
> + case IIO_DISTANCE:
> + case IIO_VELOCITY:
> break;
> default:
> return false;
> @@ -167,6 +174,7 @@ static bool event_is_known(struct iio_event_data *event)
> case IIO_MOD_JOGGING:
> case IIO_MOD_WALKING:
> case IIO_MOD_STILL:
> + case IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z:
> break;
> default:
> return false;
>
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
next prev parent reply other threads:[~2015-06-21 9:47 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 [this message]
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 ` [PATCH 1/3] iio: Add missing modifier names to core Jonathan Cameron
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=55868816.1030702@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.