From 5545d738f58b0a98e8f52b88be36528af01f60ab Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 4 Oct 2003 23:19:52 +0000 Subject: [PATCH] fixed comedi_buf_write_n_available argument --- comedi/comedi_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index e4f40f2b..eab9bb9a 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -1349,7 +1349,7 @@ static unsigned int comedi_poll_v22(struct file *file, poll_table * wait) async = s->async; if(!s->busy || !(s->subdev_flags&SDF_RUNNING) - || comedi_buf_write_n_available(async)>0){ + || comedi_buf_write_n_available(s)>0){ mask |= POLLOUT | POLLWRNORM; } } -- 2.26.2