Skip to content

Commit

Permalink
checkpatch: check vendor compatible with dashes
Browse files Browse the repository at this point in the history
The current vendor compatible check will not match vendors with dashes,
like:

  compatible="asahi-kasei"

Signed-off-by: Florian Vaussard <[email protected]>
Reported-by: Joe Perches <[email protected]>
Acked-by: Rob Herring <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Florian Vaussard authored and torvalds committed Apr 3, 2014
1 parent 515a235 commit 8f0dbfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ sub process {
my $vendor = $compat;
my $vendor_path = $dt_path . "vendor-prefixes.txt";
next if (! -f $vendor_path);
$vendor =~ s/^([a-zA-Z0-9]+)\,.*/$1/;
$vendor =~ s/^([a-zA-Z0-9\-]+)\,.*/$1/;
`grep -Eq "$vendor" $vendor_path`;
if ( $? >> 8 ) {
WARN("UNDOCUMENTED_DT_STRING",
Expand Down

0 comments on commit 8f0dbfa

Please sign in to comment.