dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Jonathan Cameron 2011-05-18 14:42:14 +01:00 committed by Greg Kroah-Hartman
parent d91a0ab06c
commit 0bb8be6431
2 changed files with 8 additions and 2 deletions

View File

@ -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)
{

View File

@ -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)
{