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