return -EIO;
}
- if(!s->do_cmd || !s->async){
+ if(!s->do_cmd || !s->do_cmdtest || !s->async){
DPRINTK("subdevice %i does not support commands\n", user_cmd.subdev);
return -EIO;
}
return -EIO;
}
- if(!s->do_cmd){
+ if(!s->do_cmd || !s->do_cmdtest){
DPRINTK("subdevice %i does not support commands\n", user_cmd.subdev);
return -EIO;
}
dev_t devt;
BUG_ON((s->subdev_flags & (SDF_CMD_READ | SDF_CMD_WRITE)) == 0);
+ BUG_ON(!s->do_cmdtest);
async = kmalloc(sizeof(comedi_async), GFP_KERNEL);
if(async == NULL)