From: David Schleef Date: Wed, 30 May 2001 20:27:54 +0000 (+0000) Subject: Added check for functions replaced by comedi_event() X-Git-Tag: r0_7_60~198 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c07e1b39340d92d0dbbac0f5db3bd517a9588d0;p=comedi.git Added check for functions replaced by comedi_event() --- diff --git a/comedi/drivers/check_driver b/comedi/drivers/check_driver index dda3e8fd..cf46fdb7 100755 --- a/comedi/drivers/check_driver +++ b/comedi/drivers/check_driver @@ -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 +