Added check for functions replaced by comedi_event()
authorDavid Schleef <ds@schleef.org>
Wed, 30 May 2001 20:27:54 +0000 (20:27 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 30 May 2001 20:27:54 +0000 (20:27 +0000)
comedi/drivers/check_driver

index dda3e8fdf2e18ccbf406ec391f23f9affa0cd2b4..cf46fdb760f6befd30fb568f1e237a7050aab7dc 100755 (executable)
@@ -246,3 +246,12 @@ if grep 'subdev_8255_init' ${driver} &>/dev/null;then
        fi
 fi
 
+# Policy change in 0.7.60.  Drivers should use comedi_event(),
+# which has a slightly different behavior.  Checks for use
+# of comedi_done(), comedi_error_done(), comedi_bufcheck(),
+# comedi_eos(), comedi_eobuf()
+if grep 'comedi_\(\(done\)\|\(error_done\)\|\(bufcheck\)\|\(eos\)\|\(eobuf\)\)[[:space:]]*(' \
+       ${driver} &>/dev/null;then
+       echo "W: should be using comedi_event()"
+fi
+