interface change: INSN_WAIT now takes nanoseconds instead of
authorDavid Schleef <ds@schleef.org>
Mon, 5 Feb 2001 02:17:05 +0000 (02:17 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 5 Feb 2001 02:17:05 +0000 (02:17 +0000)
microseconds.

comedi/comedi_fops.c

index f4a8e3ec587a7d8e58e3dde23ef92cd4fbe805c3..f7ca89f8631d81dd37ce2ecde08a11fe94473c7a 100644 (file)
@@ -776,11 +776,11 @@ static int do_insnlist_ioctl(comedi_device *dev,void *arg,void *file)
                                break;
                        }
                        case INSN_WAIT:
-                               if(insn.n<1 || data[0]>=100){
+                               if(insn.n<1 || data[0]>=100000){
                                        ret=-EINVAL;
                                        break;
                                }
-                               udelay(data[0]);
+                               udelay(data[0]/1000);
                                ret=1;
                                break;
                        default: