On 10/19/11 12:39, michael.hennerich@xxxxxxxxxx wrote: > From: Michael Hennerich <michael.hennerich@xxxxxxxxxx> > > > Signed-off-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx> Acked-by: Jonathan Cameron <jic23@xxxxxxxxx> > --- > 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 e185f0e..a761ca9 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) > if ((int_status & AD7150_STATUS_OUT1) && > !(chip->old_state & AD7150_STATUS_OUT1)) > iio_push_event(indio_dev, > - IIO_UNMOD_EVENT_CODE(IIO_VOLTAGE, > + IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, > 0, > IIO_EV_TYPE_THRESH, > IIO_EV_DIR_RISING), > @@ -481,7 +481,7 @@ static irqreturn_t ad7150_event_handler(int irq, void *private) > else if ((!(int_status & AD7150_STATUS_OUT1)) && > (chip->old_state & AD7150_STATUS_OUT1)) > iio_push_event(indio_dev, > - IIO_UNMOD_EVENT_CODE(IIO_VOLTAGE, > + IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, > 0, > IIO_EV_TYPE_THRESH, > IIO_EV_DIR_FALLING), > @@ -490,7 +490,7 @@ static irqreturn_t ad7150_event_handler(int irq, void *private) > if ((int_status & AD7150_STATUS_OUT2) && > !(chip->old_state & AD7150_STATUS_OUT2)) > iio_push_event(indio_dev, > - IIO_UNMOD_EVENT_CODE(IIO_VOLTAGE, > + IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, > 1, > IIO_EV_TYPE_THRESH, > IIO_EV_DIR_RISING), > @@ -498,7 +498,7 @@ static irqreturn_t ad7150_event_handler(int irq, void *private) > else if ((!(int_status & AD7150_STATUS_OUT2)) && > (chip->old_state & AD7150_STATUS_OUT2)) > iio_push_event(indio_dev, > - IIO_UNMOD_EVENT_CODE(IIO_VOLTAGE, > + IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, > 1, > IIO_EV_TYPE_THRESH, > IIO_EV_DIR_FALLING), -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html