diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 65c2cfa..b8bd4e1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3010,7 +3010,7 @@ # linux device tree files my $dt_path = $root . "/dts/Bindings/"; - my $vp_file = $dt_path . "vendor-prefixes.txt"; ++ my $vp_file = $dt_path . "vendor-prefixes.yaml"; # barebox-specific bindings $dt_path = $dt_path . " " . $root . "/Documentation/devicetree/bindings/"; @@ -3028,7 +3028,7 @@ next if $compat !~ /^([a-zA-Z0-9\-]+)\,/; my $vendor = $1; - `grep -Eq "^$vendor\\b" $vp_file`; ++ `grep -Eq "\\"\\^\Q$vendor\E,\\.\\*\\":" $vp_file`; if ( $? >> 8 ) { WARN("UNDOCUMENTED_DT_STRING", "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr);