new tests
authorDavid Schleef <ds@schleef.org>
Fri, 8 Nov 2002 22:15:28 +0000 (22:15 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 8 Nov 2002 22:15:28 +0000 (22:15 +0000)
scripts/check_driver

index add867d51c3d8994051c2b90f06bf26163653074..247168d348ff9dad0643467a1b9ba3e5f997f8c9 100755 (executable)
@@ -149,7 +149,11 @@ if grep 'comedi_insn' ${driver} &>/dev/null;then
        echo "uses insn"
        insn=yes
 else
-       echo "E: doesn't use insn"
+       if grep 'subdev_8255_init' ${driver} &>/dev/null;then
+               echo uses subdev_8255_init
+       else
+               echo "E: doesn't use insn"
+       fi
        insn=no
 fi
 
@@ -381,3 +385,15 @@ if [ $pci = yes ];then
        fi
 fi
 
+if grep 'insn->data' ${driver} &>/dev/null;then
+       echo "E: driver uses insn->data, which is a userspace pointer"
+fi
+
+if grep 'out[wlb] *([^(,]*iobase' ${driver} &>/dev/null; then
+       echo "E: misordered outX(dev->iobase + offset,XXX)"
+fi
+
+if grep 'write[wlb] *([^(,]*iobase' ${driver} &>/dev/null; then
+       echo "E: writeX(dev->iobase + offset,XXX)"
+fi
+