Skip to contentSkip to conversation

staging: iio: remove duplicate case labels

PATCH Applied Daniel Baluta 2 participants 2 messages Jul 7, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: iio: remove duplicate case labels

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)
---
 drivers/staging/iio/Documentation/iio_event_monitor.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/iio/Documentation/iio_event_monitor.c +0 -2
index cb35a97..569d6f8 100644
@@ -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:
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 11 lines · 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)

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

Quoted 18 lines
---
  drivers/staging/iio/Documentation/iio_event_monitor.c | 2 --
  1 file changed, 2 deletions(-)
drivers/staging/iio/Documentation/iio_event_monitor.c +0 -2
index cb35a97..569d6f8 100644
@@ -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: