comedi_device *dev;
int ret;
- if ((ret=minor_to_dev(minor, &dev))!=0)
+ if ((ret=minor_to_dev(minor, &dev))!=0)
return ret;
if (subd>dev->n_subdevices)
}
ret=ret|(minor<<28)|(subdevice<<24)|(chan<<16);
-
+
return ret;
}
async->buf_int_ptr=0;
async->buf_int_count=0;
- s->cur_trig.data_len = async->cmd.data_len;
- s->cur_trig.data = async->cmd.data;
+// cur_trig deprecated, looks like all drivers have abandoned it by now - FMH
+// s->cur_trig.data_len = async->cmd.data_len;
+// s->cur_trig.data = async->cmd.data;
+
+ async->data = cmd->data;
+ async->data_len = cmd->data_len;
return s->do_cmd(dev,s);
}
#endif
}
- s->cur_trig=*it;
+ //s->cur_trig=*it;
ret=s->trig[0](dev,s,it);
goto cleanup;
}
- s->cur_trig=*it;
+// s->cur_trig=*it;
+ async->data = it->data;
+ async->data_len = it->data_len;
ret=s->trig[it->mode](dev,s,it);
dev=comedi_get_device_by_minor(minor);
s=dev->subdevices+subdev;
- s->cur_trig=*it;
-
+// s->cur_trig=*it;
+
ret=s->trig[it->mode](dev,s,it);
-
+
return ret;
}