echo "E: not documented in drivers.txt"
fi
+# Drivers should have documentation in the source
+if grep "^Driver: ${basedriver}.o$" $driver &>/dev/null;then
+ echo "documentation in source"
+ if grep "^Devices:" $driver &>/dev/null;then
+ echo "has devices documentation"
+ else
+ echo "E: documentation: no Devices:"
+ fi
+else
+ echo "E: not documented in source"
+fi
+
# Check that the config option is in Config.in
if grep "dep_tristate.* ${config} \$CONFIG_COMEDI" ../Config.in &>/dev/null;then
echo "config option in Config.in"
echo "number of global symbols: $n_syms"
n_xsyms=$(nm ${basedriver}.o |grep -c ' __ksymtab')
echo "number of exported symbols: $n_xsyms"
- if [ $(($n_syms-$n_xsyms)) -gt 3 ];then
+ if [ $(($n_syms-$n_xsyms)) -gt 2 ];then
echo "W: driver leaks symbols"
fi
fi