|
@@ -7,6 +7,7 @@
|
|
#include <linux/mutex.h>
|
|
#include <linux/mutex.h>
|
|
#include <linux/iio/kfifo_buf.h>
|
|
#include <linux/iio/kfifo_buf.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/sched.h>
|
|
|
|
+#include <linux/poll.h>
|
|
|
|
|
|
struct iio_kfifo {
|
|
struct iio_kfifo {
|
|
struct iio_buffer buffer;
|
|
struct iio_buffer buffer;
|
|
@@ -102,7 +103,7 @@ static int iio_store_to_kfifo(struct iio_buffer *r,
|
|
if (ret != 1)
|
|
if (ret != 1)
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
r->stufftoread = true;
|
|
r->stufftoread = true;
|
|
- wake_up_interruptible(&r->pollq);
|
|
|
|
|
|
+ wake_up_interruptible_poll(&r->pollq, POLLIN | POLLRDNORM);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|