From 8c07e1b39340d92d0dbbac0f5db3bd517a9588d0 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 30 May 2001 20:27:54 +0000 Subject: [PATCH] Added check for functions replaced by comedi_event() --- comedi/drivers/check_driver | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + -- 2.26.2