diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-05-18 15:42:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-20 01:15:00 +0200 |
commit | 0bb8be643161ae1dc5c5a0255cf5ca20f7de7b5a (patch) | |
tree | 04eb61c7df2b6e7034642bf861d47c3322fd0583 | |
parent | staging:iio:adc:ad7150 fix event codes. (diff) | |
download | linux-0bb8be643161ae1dc5c5a0255cf5ca20f7de7b5a.tar.xz linux-0bb8be643161ae1dc5c5a0255cf5ca20f7de7b5a.zip |
staging:iio:adc:ad7816 and adt75 change to meaningful event code.
This was another abuse of the buffer event codes.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/iio/adc/ad7816.c | 5 | ||||
-rw-r--r-- | drivers/staging/iio/adc/adt75.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/drivers/staging/iio/adc/ad7816.c b/drivers/staging/iio/adc/ad7816.c index bee4209e8814..873fe2bf8312 100644 --- a/drivers/staging/iio/adc/ad7816.c +++ b/drivers/staging/iio/adc/ad7816.c @@ -247,7 +247,10 @@ static const struct attribute_group ad7816_attribute_group = { * temperature bound events */ -#define IIO_EVENT_CODE_AD7816_OTI IIO_BUFFER_EVENT_CODE(0) +#define IIO_EVENT_CODE_AD7816_OTI IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_TEMP, \ + 0, \ + IIO_EV_TYPE_THRESH, \ + IIO_EV_DIR_FALLING) static irqreturn_t ad7816_event_handler(int irq, void *private) { diff --git a/drivers/staging/iio/adc/adt75.c b/drivers/staging/iio/adc/adt75.c index 4b1c0fa73a82..2a44428a1075 100644 --- a/drivers/staging/iio/adc/adt75.c +++ b/drivers/staging/iio/adc/adt75.c @@ -258,7 +258,10 @@ static const struct attribute_group adt75_attribute_group = { * temperature bound events */ -#define IIO_EVENT_CODE_ADT75_OTI IIO_BUFFER_EVENT_CODE(0) +#define IIO_EVENT_CODE_ADT75_OTI IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_TEMP, \ + 0, \ + IIO_EV_TYPE_THRESH, \ + IIO_EV_DIR_FALLING) static irqreturn_t adt75_event_handler(int irq, void *private) { |