From: David Schleef Date: Wed, 18 Jun 2003 01:25:54 +0000 (+0000) Subject: alloc_subdevices() changed. X-Git-Tag: r0_7_67x~2 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ae75198c383b9f4fb4ee8c1484dfde9a672f3f84;p=comedi.git alloc_subdevices() changed. --- diff --git a/scripts/check_driver b/scripts/check_driver index acc1120f..ad937493 100755 --- a/scripts/check_driver +++ b/scripts/check_driver @@ -97,10 +97,10 @@ fi # However, for drivers that handle N identical subdevices, it's better # to have a variable number of subdevices. tmp=$(cat ${driver}|grep -c 'dev..n_subdevices[[:space:]]*=' 2>/dev/null) -if [ "$tmp" = 1 ];then - echo sets n_subdevices once +if [ "$tmp" = 0 ];then + echo "doesn't set n_subdevices (good)" else - echo W: sets n_subdevices multiple times: "$tmp" + echo "W: sets n_subdevices multiple ($tmp) times" fi if grep 'dev..n_subdevices[[:space:]]*=[[:space:]]*[^[:digit:][:space:]]' ${driver} &>/dev/null;then echo "W: sets n_subdevices by variable"