Lars-Peter Clausen | 23f2d73 | 2012-06-18 18:33:48 +0200 | [diff] [blame^] | 1 | #ifndef _LINUX_IIO_TRIGGERED_BUFFER_H_ |
2 | #define _LINUX_IIO_TRIGGERED_BUFFER_H_ | ||||
3 | |||||
4 | #include <linux/interrupt.h> | ||||
5 | |||||
6 | struct iio_dev; | ||||
7 | struct iio_buffer_setup_ops; | ||||
8 | |||||
9 | int iio_triggered_buffer_setup(struct iio_dev *indio_dev, | ||||
10 | irqreturn_t (*pollfunc_bh)(int irq, void *p), | ||||
11 | irqreturn_t (*pollfunc_th)(int irq, void *p), | ||||
12 | const struct iio_buffer_setup_ops *setup_ops); | ||||
13 | void iio_triggered_buffer_cleanup(struct iio_dev *indio_dev); | ||||
14 | |||||
15 | #endif |