]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: fix USLEEP_RANGE test
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 20 Feb 2013 02:15:35 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:20 +0000 (16:53 +1100)
commit2d1960494badfd16f51e71c324905f5150c15341
tree06c55f213f96ac86751485593074466443293ee5
parent60c338f68b1fdc51574626ba51489a7c5478b7cb
checkpatch: fix USLEEP_RANGE test

Do not test udelay() for a value less than 10usec when passed a variable
instead of a hard-coded number; there is no way for checkpatch to know the
value of the variable.  As it is today, it will complain about variables
with alphanumeric characters plus '_', e.g.  foo_bar, but not variables
with other characters, eg.  foo->bar.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl