aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index bb28b178d929..342c7c781ba5 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3027,7 +3027,7 @@ sub process {
3027 my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g; 3027 my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g;
3028 3028
3029 my $dt_path = $root . "/Documentation/devicetree/bindings/"; 3029 my $dt_path = $root . "/Documentation/devicetree/bindings/";
3030 my $vp_file = $dt_path . "vendor-prefixes.txt"; 3030 my $vp_file = $dt_path . "vendor-prefixes.yaml";
3031 3031
3032 foreach my $compat (@compats) { 3032 foreach my $compat (@compats) {
3033 my $compat2 = $compat; 3033 my $compat2 = $compat;
@@ -3042,7 +3042,7 @@ sub process {
3042 3042
3043 next if $compat !~ /^([a-zA-Z0-9\-]+)\,/; 3043 next if $compat !~ /^([a-zA-Z0-9\-]+)\,/;
3044 my $vendor = $1; 3044 my $vendor = $1;
3045 `grep -Eq "^$vendor\\b" $vp_file`; 3045 `grep -Eq "\\"\\^\Q$vendor\E,\\.\\*\\":" $vp_file`;
3046 if ( $? >> 8 ) { 3046 if ( $? >> 8 ) {
3047 WARN("UNDOCUMENTED_DT_STRING", 3047 WARN("UNDOCUMENTED_DT_STRING",
3048 "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr); 3048 "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr);