diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2011-10-19 08:41:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-19 16:55:44 -0400 |
commit | 1b992320775691ba0124bd37c5fffe16172743cd (patch) | |
tree | 882efe5b101d2268c809f2db7b35465049e0f484 /drivers | |
parent | 5c48cb9de1fb9702d5cfbf659840d02fb226b601 (diff) |
iio: cdc: Fix pushed event code - Typo, should be IIO_CAPACITANCE.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/cdc/ad7150.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/iio/cdc/ad7150.c b/drivers/staging/iio/cdc/ad7150.c index e185f0e052a3..a761ca94a17e 100644 --- a/drivers/staging/iio/cdc/ad7150.c +++ b/drivers/staging/iio/cdc/ad7150.c | |||
@@ -473,7 +473,7 @@ static irqreturn_t ad7150_event_handler(int irq, void *private) | |||
473 | if ((int_status & AD7150_STATUS_OUT1) && | 473 | if ((int_status & AD7150_STATUS_OUT1) && |
474 | !(chip->old_state & AD7150_STATUS_OUT1)) | 474 | !(chip->old_state & AD7150_STATUS_OUT1)) |
475 | iio_push_event(indio_dev, | 475 | iio_push_event(indio_dev, |
476 | IIO_UNMOD_EVENT_CODE(IIO_VOLTAGE, | 476 | IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, |
477 | 0, | 477 | 0, |
478 | IIO_EV_TYPE_THRESH, | 478 | IIO_EV_TYPE_THRESH, |
479 | IIO_EV_DIR_RISING), | 479 | IIO_EV_DIR_RISING), |
@@ -481,7 +481,7 @@ static irqreturn_t ad7150_event_handler(int irq, void *private) | |||
481 | else if ((!(int_status & AD7150_STATUS_OUT1)) && | 481 | else if ((!(int_status & AD7150_STATUS_OUT1)) && |
482 | (chip->old_state & AD7150_STATUS_OUT1)) | 482 | (chip->old_state & AD7150_STATUS_OUT1)) |
483 | iio_push_event(indio_dev, | 483 | iio_push_event(indio_dev, |
484 | IIO_UNMOD_EVENT_CODE(IIO_VOLTAGE, | 484 | IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, |
485 | 0, | 485 | 0, |
486 | IIO_EV_TYPE_THRESH, | 486 | IIO_EV_TYPE_THRESH, |
487 | IIO_EV_DIR_FALLING), | 487 | IIO_EV_DIR_FALLING), |
@@ -490,7 +490,7 @@ static irqreturn_t ad7150_event_handler(int irq, void *private) | |||
490 | if ((int_status & AD7150_STATUS_OUT2) && | 490 | if ((int_status & AD7150_STATUS_OUT2) && |
491 | !(chip->old_state & AD7150_STATUS_OUT2)) | 491 | !(chip->old_state & AD7150_STATUS_OUT2)) |
492 | iio_push_event(indio_dev, | 492 | iio_push_event(indio_dev, |
493 | IIO_UNMOD_EVENT_CODE(IIO_VOLTAGE, | 493 | IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, |
494 | 1, | 494 | 1, |
495 | IIO_EV_TYPE_THRESH, | 495 | IIO_EV_TYPE_THRESH, |
496 | IIO_EV_DIR_RISING), | 496 | IIO_EV_DIR_RISING), |
@@ -498,7 +498,7 @@ static irqreturn_t ad7150_event_handler(int irq, void *private) | |||
498 | else if ((!(int_status & AD7150_STATUS_OUT2)) && | 498 | else if ((!(int_status & AD7150_STATUS_OUT2)) && |
499 | (chip->old_state & AD7150_STATUS_OUT2)) | 499 | (chip->old_state & AD7150_STATUS_OUT2)) |
500 | iio_push_event(indio_dev, | 500 | iio_push_event(indio_dev, |
501 | IIO_UNMOD_EVENT_CODE(IIO_VOLTAGE, | 501 | IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, |
502 | 1, | 502 | 1, |
503 | IIO_EV_TYPE_THRESH, | 503 | IIO_EV_TYPE_THRESH, |
504 | IIO_EV_DIR_FALLING), | 504 | IIO_EV_DIR_FALLING), |