Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5ffad46 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "checkpatch: check compatible strings in .c and .h too"

parents b5401b53 5785af3b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2193,8 +2193,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) {