int8_t *transfer_buffer;
int16_t *insnBuffer; /* input buffer for single insn */
struct usb_interface *intf; /* interface structure */
- /* comedi device for the interrupt context */
- struct comedi_device *comedidev;
short int ai_cmd_running; /* asynchronous command is running */
short int ai_continous; /* continous acquisition */
long int ai_sample_count; /* number of samples to acquire */
dev->private = devpriv;
sema_init(&devpriv->sem, 1);
- devpriv->comedidev = dev;
devpriv->usb = usb;
devpriv->intf = intf;
usb_set_intfdata(intf, devpriv);
down(&devpriv->sem);
- devpriv->comedidev = NULL;
-
if (devpriv->intf)
usb_set_intfdata(devpriv->intf, NULL);