From: David Schleef Date: Fri, 8 Nov 2002 22:15:28 +0000 (+0000) Subject: new tests X-Git-Tag: r0_7_66~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9871886bb7a7da2ea8661d4e0fda24efb14b6b8;p=comedi.git new tests --- diff --git a/scripts/check_driver b/scripts/check_driver index add867d5..247168d3 100755 --- a/scripts/check_driver +++ b/scripts/check_driver @@ -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 +