|
@@ -2074,8 +2074,10 @@ sub process {
|
|
|
}
|
|
|
|
|
|
# check for DT compatible documentation
|
|
|
- if (defined $root && $realfile =~ /\.dts/ &&
|
|
|
- $rawline =~ /^\+\s*compatible\s*=/) {
|
|
|
+ if (defined $root &&
|
|
|
+ (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
|
|
|
+ ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
|
|
|
+
|
|
|
my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g;
|
|
|
|
|
|
foreach my $compat (@compats) {
|