projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225d830
)
Added check for functions replaced by comedi_event()
author
David Schleef
<ds@schleef.org>
Wed, 30 May 2001 20:27:54 +0000
(20:27 +0000)
committer
David Schleef
<ds@schleef.org>
Wed, 30 May 2001 20:27:54 +0000
(20:27 +0000)
comedi/drivers/check_driver
patch
|
blob
|
history
diff --git
a/comedi/drivers/check_driver
b/comedi/drivers/check_driver
index dda3e8fdf2e18ccbf406ec391f23f9affa0cd2b4..cf46fdb760f6befd30fb568f1e237a7050aab7dc 100755
(executable)
--- 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
+