From: Frank Mori Hess Date: Thu, 3 May 2001 16:58:20 +0000 (+0000) Subject: fixed trig modes > 0 for using cur_trig-> instead of async-> X-Git-Tag: r0_7_59~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=469a4ead84e4c68bc1cc556f6f7626d2778e9b38;p=comedi.git fixed trig modes > 0 for using cur_trig-> instead of async-> --- 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");