Skip to contentSkip to conversation

checkpatch: DT bindings vendor prefixes file yas been translated into yaml

PATCH In review Miquel Raynal 2 participants 3 messages Jul 5, 2019 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: DT bindings vendor prefixes file yas been translated into yaml

The extension is now .yaml instead of .txt.

Fixes 8122de54602e ("dt-bindings: Convert vendor prefixes to json-schema")
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index bb28b178d929..9a3163020d67 100755
@@ -3027,7 +3027,7 @@ sub process {
 			my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g;
 
 			my $dt_path = $root . "/Documentation/devicetree/bindings/";
-			my $vp_file = $dt_path . "vendor-prefixes.txt";
+			my $vp_file = $dt_path . "vendor-prefixes.yaml";
 
 			foreach my $compat (@compats) {
 				my $compat2 = $compat;
Signature · 1 line
2.19.1
#1 lore raw

Hello,

Miquel Raynal <[email protected]> wrote on Fri, 5 Jul 2019 12:03:45 +0200:

Quoted 5 lines

The extension is now .yaml instead of .txt.

Fixes 8122de54602e ("dt-bindings: Convert vendor prefixes to json-schema")

---

I am one month too late, didn't saw it was fixed in linux-next (as well as the vendors prefix research), sorry for the noise.

Kind regards,
Miquèl

maintainer
#2 lore raw
In reply to Miquel Raynal
Quoted 13 lines · Miquel Raynal

The extension is now .yaml instead of .txt.

Fixes 8122de54602e ("dt-bindings: Convert vendor prefixes to json-schema")
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +0 -0
index bb28b178d929..9a3163020d67 100755

scripts/checkpatch.pl sub process { · line 3033

Quoted 8 lines
scripts/checkpatch.pl +1 -1
@@ -3027,7 +3027,7 @@ sub process {
 			my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g;
 
 			my $dt_path = $root . "/Documentation/devicetree/bindings/";
-			my $vp_file = $dt_path . "vendor-prefixes.txt";
+			my $vp_file = $dt_path . "vendor-prefixes.yaml";
 
 			foreach my $compat (@compats) {
 				my $compat2 = $compat;

Already fixed in -next by:

commit 852d095d16a6298834839f441593f59d58a31978

Author: Rob Herring <[email protected]>
Date:   Wed May 22 09:55:34 2019 -0500

checkpatch.pl: Update DT vendor prefix check

In commit 8122de54602e ("dt-bindings: Convert vendor prefixes to json-schema"), vendor-prefixes.txt has been converted to a DT schema. Update the checkpatch.pl DT check to extract vendor prefixes from the new vendor-prefixes.yaml file.

Fixes 8122de54602e ("dt-bindings: Convert vendor prefixes to json-schema")
Cc Joe Perches <[email protected]>