* [PATCH v3] staging: iio: iio_event_monitor: Add support for missing IIO modifiers
@ 2014-10-22 13:50 Roberta Dobrescu
2014-10-22 14:12 ` [OPW kernel] " Daniel Baluta
0 siblings, 1 reply; 5+ messages in thread
From: Roberta Dobrescu @ 2014-10-22 13:50 UTC (permalink / raw)
To: opw-kernel; +Cc: jic23, linux-iio, Roberta Dobrescu
This patch adds the missing IIO modifiers in event_is_known function
and iio_modifier_names vector.
Additionally, it removes duplicate name entries of IIO_MOD_LIGHT_BOTH
and IIO_MOD_LIGHT_IR in iio_modifier_names.
Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
---
Changes since v1:
- Add iio_event_monitor in subject
- Modify commit message in order to be more clear
- Add missing comma
Changes since v2:
- Fix spotted typo
.../staging/iio/Documentation/iio_event_monitor.c | 32 ++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/iio/Documentation/iio_event_monitor.c b/drivers/staging/iio/Documentation/iio_event_monitor.c
index 569d6f8..0300900 100644
--- a/drivers/staging/iio/Documentation/iio_event_monitor.c
+++ b/drivers/staging/iio/Documentation/iio_event_monitor.c
@@ -69,16 +69,29 @@ 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_LIGHT_BOTH] = "both",
[IIO_MOD_LIGHT_IR] = "ir",
[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",
- [IIO_MOD_LIGHT_IR] = "ir",
[IIO_MOD_LIGHT_CLEAR] = "clear",
[IIO_MOD_LIGHT_RED] = "red",
[IIO_MOD_LIGHT_GREEN] = "green",
[IIO_MOD_LIGHT_BLUE] = "blue",
+ [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",
};
static bool event_is_known(struct iio_event_data *event)
@@ -118,6 +131,14 @@ static bool event_is_known(struct iio_event_data *event)
case IIO_MOD_X:
case IIO_MOD_Y:
case IIO_MOD_Z:
+ case IIO_MOD_X_AND_Y:
+ case IIO_MOD_X_AND_Z:
+ case IIO_MOD_Y_AND_Z:
+ case IIO_MOD_X_AND_Y_AND_Z:
+ case IIO_MOD_X_OR_Y:
+ case IIO_MOD_X_OR_Z:
+ case IIO_MOD_Y_OR_Z:
+ case IIO_MOD_X_OR_Y_OR_Z:
case IIO_MOD_LIGHT_BOTH:
case IIO_MOD_LIGHT_IR:
case IIO_MOD_ROOT_SUM_SQUARED_X_Y:
@@ -126,6 +147,13 @@ static bool event_is_known(struct iio_event_data *event)
case IIO_MOD_LIGHT_RED:
case IIO_MOD_LIGHT_GREEN:
case IIO_MOD_LIGHT_BLUE:
+ case IIO_MOD_QUATERNION:
+ case IIO_MOD_TEMP_AMBIENT:
+ case IIO_MOD_TEMP_OBJECT:
+ case IIO_MOD_NORTH_MAGN:
+ case IIO_MOD_NORTH_TRUE:
+ case IIO_MOD_NORTH_MAGN_TILT_COMP:
+ case IIO_MOD_NORTH_TRUE_TILT_COMP:
break;
default:
return false;
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [OPW kernel] [PATCH v3] staging: iio: iio_event_monitor: Add support for missing IIO modifiers
2014-10-22 13:50 [PATCH v3] staging: iio: iio_event_monitor: Add support for missing IIO modifiers Roberta Dobrescu
@ 2014-10-22 14:12 ` Daniel Baluta
2014-10-25 9:56 ` Jonathan Cameron
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Baluta @ 2014-10-22 14:12 UTC (permalink / raw)
To: Roberta Dobrescu; +Cc: opw-kernel, Jonathan Cameron, linux-iio
On Wed, Oct 22, 2014 at 4:50 PM, Roberta Dobrescu
<roberta.dobrescu@gmail.com> wrote:
> This patch adds the missing IIO modifiers in event_is_known function
> and iio_modifier_names vector.
>
> Additionally, it removes duplicate name entries of IIO_MOD_LIGHT_BOTH
> and IIO_MOD_LIGHT_IR in iio_modifier_names.
>
> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OPW kernel] [PATCH v3] staging: iio: iio_event_monitor: Add support for missing IIO modifiers
2014-10-22 14:12 ` [OPW kernel] " Daniel Baluta
@ 2014-10-25 9:56 ` Jonathan Cameron
2014-10-28 12:40 ` Daniel Baluta
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2014-10-25 9:56 UTC (permalink / raw)
To: Daniel Baluta, Roberta Dobrescu; +Cc: opw-kernel, linux-iio
On 22/10/14 15:12, Daniel Baluta wrote:
> On Wed, Oct 22, 2014 at 4:50 PM, Roberta Dobrescu
> <roberta.dobrescu@gmail.com> wrote:
>> This patch adds the missing IIO modifiers in event_is_known function
>> and iio_modifier_names vector.
>>
>> Additionally, it removes duplicate name entries of IIO_MOD_LIGHT_BOTH
>> and IIO_MOD_LIGHT_IR in iio_modifier_names.
>>
>> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
>
> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
>
Applied to the togreg branch of iio.git - initially pushed out as
testing for the autobuilders to play.
Jonathan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OPW kernel] [PATCH v3] staging: iio: iio_event_monitor: Add support for missing IIO modifiers
2014-10-25 9:56 ` Jonathan Cameron
@ 2014-10-28 12:40 ` Daniel Baluta
2014-10-28 14:23 ` Greg Kroah-Hartman
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Baluta @ 2014-10-28 12:40 UTC (permalink / raw)
To: Jonathan Cameron, Greg Kroah-Hartman
Cc: Daniel Baluta, Roberta Dobrescu, opw-kernel, linux-iio
On Sat, Oct 25, 2014 at 12:56 PM, Jonathan Cameron <jic23@kernel.org> wrote:
> On 22/10/14 15:12, Daniel Baluta wrote:
>> On Wed, Oct 22, 2014 at 4:50 PM, Roberta Dobrescu
>> <roberta.dobrescu@gmail.com> wrote:
>>> This patch adds the missing IIO modifiers in event_is_known function
>>> and iio_modifier_names vector.
>>>
>>> Additionally, it removes duplicate name entries of IIO_MOD_LIGHT_BOTH
>>> and IIO_MOD_LIGHT_IR in iio_modifier_names.
>>>
>>> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
>>
>> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
>>
> Applied to the togreg branch of iio.git - initially pushed out as
> testing for the autobuilders to play.
Hi,
FYI:
Please note that this patch is both in Greg's staging-testing [1]
and Jonathan's testing [2] tree.
thanks,
Daniel.
[1] https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/commit/?h=staging-testing&id=0a6e2170dfcd2b17ae32ad91993edf2b77014137
[2] https://git.kernel.org/cgit/linux/kernel/git/jic23/iio.git/commit/?h=testing&id=a9bef750135cc261bfceff6840a30a3f357df8da
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OPW kernel] [PATCH v3] staging: iio: iio_event_monitor: Add support for missing IIO modifiers
2014-10-28 12:40 ` Daniel Baluta
@ 2014-10-28 14:23 ` Greg Kroah-Hartman
0 siblings, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2014-10-28 14:23 UTC (permalink / raw)
To: Daniel Baluta; +Cc: Jonathan Cameron, Roberta Dobrescu, opw-kernel, linux-iio
On Tue, Oct 28, 2014 at 02:40:21PM +0200, Daniel Baluta wrote:
> On Sat, Oct 25, 2014 at 12:56 PM, Jonathan Cameron <jic23@kernel.org> wrote:
> > On 22/10/14 15:12, Daniel Baluta wrote:
> >> On Wed, Oct 22, 2014 at 4:50 PM, Roberta Dobrescu
> >> <roberta.dobrescu@gmail.com> wrote:
> >>> This patch adds the missing IIO modifiers in event_is_known function
> >>> and iio_modifier_names vector.
> >>>
> >>> Additionally, it removes duplicate name entries of IIO_MOD_LIGHT_BOTH
> >>> and IIO_MOD_LIGHT_IR in iio_modifier_names.
> >>>
> >>> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
> >>
> >> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
> >>
> > Applied to the togreg branch of iio.git - initially pushed out as
> > testing for the autobuilders to play.
>
> Hi,
>
> FYI:
>
> Please note that this patch is both in Greg's staging-testing [1]
> and Jonathan's testing [2] tree.
>
> thanks,
> Daniel.
>
> [1] https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/commit/?h=staging-testing&id=0a6e2170dfcd2b17ae32ad91993edf2b77014137
> [2] https://git.kernel.org/cgit/linux/kernel/git/jic23/iio.git/commit/?h=testing&id=a9bef750135cc261bfceff6840a30a3f357df8da
That's ok, git handles that just fine when we merge together.
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-28 14:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 13:50 [PATCH v3] staging: iio: iio_event_monitor: Add support for missing IIO modifiers Roberta Dobrescu
2014-10-22 14:12 ` [OPW kernel] " Daniel Baluta
2014-10-25 9:56 ` Jonathan Cameron
2014-10-28 12:40 ` Daniel Baluta
2014-10-28 14:23 ` Greg Kroah-Hartman
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.