]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: fix wildcard DT compatible string checking
authorRob Herring <robh@kernel.org>
Sat, 17 May 2014 13:18:34 +0000 (23:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:18:34 +0000 (23:18 +1000)
commitc13aed7d38c5cbd6cf20fecff881e042b280153e
tree1b0f95566d78a5c4ca3a2114e9c15747c4e7ad78
parentbc1ff6fed2be4cf4573830dd58c252e2809022b7
checkpatch: fix wildcard DT compatible string checking

We attempt to search for compatible strings which use a variable token in
the documented name such as <chip> or <soc>.  While this was attempted to
be handled, it's utterly broken.

The desired forms of matching are:

vendor,<chip>-*
vendor,name<part#>-*

For <chip>, lower case characters and numbers are permitted.  For <part#>,
only numeric values are allowed.

With this change, the number of missing compatible strings reported in
arch/arm/boot/dts is reduced from 1071 to 960.

Reported-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Florian Vaussard <florian.vaussard@epfl.ch>
Cc: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl