1 #ifndef _LINUX_IIO_TRIGGERED_BUFFER_H_
2 #define _LINUX_IIO_TRIGGERED_BUFFER_H_
4 #include <linux/interrupt.h>
7 struct iio_buffer_setup_ops
;
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
);