]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: fix USLEEP_RANGE test
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 22 Feb 2013 00:44:19 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:26 +0000 (17:22 -0800)
commit28a7518ba5a8f1e0a861f8cbe3fbc6d49de2d152
tree3430f2a52b74f201cb20789cf9387d2cd3295a8c
parent2dd839961b2b4e06265eb31a98ae7a17ee855f02
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl