From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: Reyad Attiyat <reyad.attiyat@gmail.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
jic23@kernel.org
Subject: Re: [PATCH v6 2/4] iio: types: Added support for rotation from north usage attributes
Date: Sat, 19 Jul 2014 16:26:51 -0700 [thread overview]
Message-ID: <53CAFEBB.8030008@linux.intel.com> (raw)
In-Reply-To: <1405621109-21147-3-git-send-email-reyad.attiyat@gmail.com>
On 07/17/2014 11:18 AM, Reyad Attiyat wrote:
> Added the rotation from north usage attributes to the iio modifier enum and to the iio modifier names array.
>
> Signed-off-by: Reyad Attiyat <reyad.attiyat@gmail.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
> drivers/iio/industrialio-core.c | 4 ++++
> include/linux/iio/types.h | 4 ++++
> 2 files changed, 8 insertions(+)
>
> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
> index 4b1f375..af3e76d 100644
> --- a/drivers/iio/industrialio-core.c
> +++ b/drivers/iio/industrialio-core.c
> @@ -87,6 +87,10 @@ static const char * const iio_modifier_names[] = {
> [IIO_MOD_QUATERNION] = "quaternion",
> [IIO_MOD_TEMP_AMBIENT] = "ambient",
> [IIO_MOD_TEMP_OBJECT] = "object",
> + [IIO_MOD_NORTH_MAGN] = "from_north_magnetic",
> + [IIO_MOD_NORTH_TRUE] = "from_north_true",
> + [IIO_MOD_NORTH_MAGN_TILT_COMP] = "from_north_magnetic_tilt_comp",
> + [IIO_MOD_NORTH_TRUE_TILT_COMP] = "from_north_true_tilt_comp",
> };
>
> /* relies on pairs of these shared then separate */
> diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h
> index d480631..d09c40d 100644
> --- a/include/linux/iio/types.h
> +++ b/include/linux/iio/types.h
> @@ -56,6 +56,10 @@ enum iio_modifier {
> IIO_MOD_QUATERNION,
> IIO_MOD_TEMP_AMBIENT,
> IIO_MOD_TEMP_OBJECT,
> + IIO_MOD_NORTH_MAGN,
> + IIO_MOD_NORTH_TRUE,
> + IIO_MOD_NORTH_MAGN_TILT_COMP,
> + IIO_MOD_NORTH_TRUE_TILT_COMP
> };
>
> enum iio_event_type {
next prev parent reply other threads:[~2014-07-19 23:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 18:18 [PATCH v6 0/4] iio: Add support for rotation from north Reyad Attiyat
2014-07-17 18:18 ` [PATCH v6 1/4] iio: Documentation: Add documentation for rotation from north sensor usage attributes Reyad Attiyat
2014-07-19 23:26 ` Srinivas Pandruvada
2014-07-20 12:32 ` Jonathan Cameron
2014-07-17 18:18 ` [PATCH v6 2/4] iio: types: Added support for rotation from north " Reyad Attiyat
2014-07-19 23:26 ` Srinivas Pandruvada [this message]
2014-07-20 12:35 ` Jonathan Cameron
2014-07-20 12:38 ` Jonathan Cameron
2014-07-17 18:18 ` [PATCH v6 3/4] iio: hid-sensor-magn-3d: Scan for usage attributes before setting up iio channels Reyad Attiyat
2014-07-19 23:27 ` Srinivas Pandruvada
2014-07-20 12:38 ` Jonathan Cameron
2014-07-17 18:18 ` [PATCH v6 4/4] iio: hid-sensor-magn-3d: Add support for rotation from north Reyad Attiyat
2014-07-19 23:27 ` Srinivas Pandruvada
2014-07-20 12:40 ` Jonathan Cameron
2014-07-19 10:48 ` [PATCH v6 0/4] iio: " 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=53CAFEBB.8030008@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=reyad.attiyat@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).