Skip to contentSkip to conversation

get_maintainer: add email addresses from dts files

PATCH Superseded Shawn Guo 2 participants 2 messages Aug 30, 2020 – Sep 30, 2020 GET_MAINTAINER script

lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

PATCH 1/1 get_maintainer: add email addresses from dts files

MAINTAINER file will get bloated quickly if individual section entry is created for each .dts/.dtsi file. Add the email address from dts files to get_maintainer output for saving unnecessary patching on MAINTAINER file.

---
 scripts/get_maintainer.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_maintainer.pl +1 -1
index 484d2fbf5921..b8e104028359 100755
@@ -436,7 +436,7 @@ sub maintainers_in_file {
 
     return if ($file =~ m@\bMAINTAINERS$@);
 
-    if (-f $file && ($email_file_emails || $file =~ /\.yaml$/)) {
+    if (-f $file && ($email_file_emails || $file =~ /\.(?:yaml|dtsi?)$/)) {
 	open(my $f, '<', $file)
 	    or die "$P: Can't open $file: $!\n";
 	my $text = do { local($/) ; <$f> };
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Shawn Guo

MAINTAINER file will get bloated quickly if individual section entry is created for each .dts/.dtsi file. Add the email address from dts files to get_maintainer output for saving unnecessary patching on MAINTAINER file.

Quoted 6 lines
---
 scripts/get_maintainer.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I thought this was applied... but seems not, so my previous email could be ignored.

I like this approach because contact details for specific boards are useful. So +1 from me:

Best regards,
Krzysztof