From 469a4ead84e4c68bc1cc556f6f7626d2778e9b38 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 3 May 2001 16:58:20 +0000 Subject: [PATCH] fixed trig modes > 0 for using cur_trig-> instead of async-> --- comedi/comedi_fops.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index f39752a9..8cfe420e 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -770,8 +770,11 @@ static int do_trig_ioctl_modeN(comedi_device *dev,comedi_subdevice *s,comedi_tri if(!s->async->prealloc_buf){ printk("comedi: bug: s->async->prealloc_buf==NULL\n"); } - s->cur_trig.data=async->prealloc_buf; - s->cur_trig.data_len=async->prealloc_bufsz; + +// s->cur_trig.data=async->prealloc_buf; +// s->cur_trig.data_len=async->prealloc_bufsz; + async->data=async->prealloc_buf; + async->data_len=async->prealloc_bufsz; async->buf_int_ptr=0; async->buf_int_count=0; @@ -905,7 +908,7 @@ static int do_insnlist_ioctl(comedi_device *dev,void *arg,void *file) ret = -EACCES; goto error; } - + if((ret=check_chanlist(s,1,&insn.chanspec))<0){ ret=-EINVAL; DPRINTK("bad chanspec\n"); -- 2.26.2