summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/iio/triggered_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/iio/triggered_event.h')
-rw-r--r--kernel/include/linux/iio/triggered_event.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/include/linux/iio/triggered_event.h b/kernel/include/linux/iio/triggered_event.h
new file mode 100644
index 000000000..8fe853708
--- /dev/null
+++ b/kernel/include/linux/iio/triggered_event.h
@@ -0,0 +1,11 @@
+#ifndef _LINUX_IIO_TRIGGERED_EVENT_H_
+#define _LINUX_IIO_TRIGGERED_EVENT_H_
+
+#include <linux/interrupt.h>
+
+int iio_triggered_event_setup(struct iio_dev *indio_dev,
+ irqreturn_t (*h)(int irq, void *p),
+ irqreturn_t (*thread)(int irq, void *p));
+void iio_triggered_event_cleanup(struct iio_dev *indio_dev);
+
+#endif