* [PATCH] staging: iio: remove duplicate case labels
@ 2014-07-07 14:12 Daniel Baluta
2014-07-07 16:16 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Baluta @ 2014-07-07 14:12 UTC (permalink / raw)
To: jic23, pmeerw; +Cc: gregkh, linux-iio, devel, linux-kernel, Daniel Baluta
Otherwise, compiling iio_event_monitor program fails:
io_event_monitor.c: In function ‘event_is_known’:
iio_event_monitor.c:125:2: error: duplicate case value
case IIO_MOD_LIGHT_BOTH:
^
iio_event_monitor.c:121:2: error: previously used here
case IIO_MOD_LIGHT_BOTH:
Fixes: da4db94 (iio staging: add recently added modifiers to iio_event_monitor)
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
---
drivers/staging/iio/Documentation/iio_event_monitor.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/iio/Documentation/iio_event_monitor.c b/drivers/staging/iio/Documentation/iio_event_monitor.c
index cb35a97..569d6f8 100644
--- a/drivers/staging/iio/Documentation/iio_event_monitor.c
+++ b/drivers/staging/iio/Documentation/iio_event_monitor.c
@@ -122,8 +122,6 @@ static bool event_is_known(struct iio_event_data *event)
case IIO_MOD_LIGHT_IR:
case IIO_MOD_ROOT_SUM_SQUARED_X_Y:
case IIO_MOD_SUM_SQUARED_X_Y_Z:
- case IIO_MOD_LIGHT_BOTH:
- case IIO_MOD_LIGHT_IR:
case IIO_MOD_LIGHT_CLEAR:
case IIO_MOD_LIGHT_RED:
case IIO_MOD_LIGHT_GREEN:
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: iio: remove duplicate case labels
2014-07-07 14:12 [PATCH] staging: iio: remove duplicate case labels Daniel Baluta
@ 2014-07-07 16:16 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2014-07-07 16:16 UTC (permalink / raw)
To: Daniel Baluta, pmeerw; +Cc: gregkh, linux-iio, devel, linux-kernel
On 07/07/14 15:12, Daniel Baluta wrote:
> Otherwise, compiling iio_event_monitor program fails:
>
> io_event_monitor.c: In function ‘event_is_known’:
> iio_event_monitor.c:125:2: error: duplicate case value
> case IIO_MOD_LIGHT_BOTH:
> ^
> iio_event_monitor.c:121:2: error: previously used here
> case IIO_MOD_LIGHT_BOTH:
>
> Fixes: da4db94 (iio staging: add recently added modifiers to iio_event_monitor)
> Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Applied to the togreg branch of iio.git. It's a fix to example code so
probably not worth pushing out any faster.
Thanks,
Jonathan
> ---
> drivers/staging/iio/Documentation/iio_event_monitor.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/staging/iio/Documentation/iio_event_monitor.c b/drivers/staging/iio/Documentation/iio_event_monitor.c
> index cb35a97..569d6f8 100644
> --- a/drivers/staging/iio/Documentation/iio_event_monitor.c
> +++ b/drivers/staging/iio/Documentation/iio_event_monitor.c
> @@ -122,8 +122,6 @@ static bool event_is_known(struct iio_event_data *event)
> case IIO_MOD_LIGHT_IR:
> case IIO_MOD_ROOT_SUM_SQUARED_X_Y:
> case IIO_MOD_SUM_SQUARED_X_Y_Z:
> - case IIO_MOD_LIGHT_BOTH:
> - case IIO_MOD_LIGHT_IR:
> case IIO_MOD_LIGHT_CLEAR:
> case IIO_MOD_LIGHT_RED:
> case IIO_MOD_LIGHT_GREEN:
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-07 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-07 14:12 [PATCH] staging: iio: remove duplicate case labels Daniel Baluta
2014-07-07 16:16 ` Jonathan Cameron
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).