aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl14
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9163651edc50..6b409b0ad457 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3302,11 +3302,15 @@ sub process {
3302 $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && 3302 $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ &&
3303#Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show) 3303#Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show)
3304 $var !~ /^(?:[a-z_]*?)_?[a-z][A-Z](?:_[a-z_]+)?$/) { 3304 $var !~ /^(?:[a-z_]*?)_?[a-z][A-Z](?:_[a-z_]+)?$/) {
3305 seed_camelcase_includes() if ($check); 3305 while ($var =~ m{($Ident)}g) {
3306 if (!defined $camelcase{$var}) { 3306 my $word = $1;
3307 $camelcase{$var} = 1; 3307 next if ($word !~ /[A-Z][a-z]|[a-z][A-Z]/);
3308 CHK("CAMELCASE", 3308 seed_camelcase_includes() if ($check);
3309 "Avoid CamelCase: <$var>\n" . $herecurr); 3309 if (!defined $camelcase{$word}) {
3310 $camelcase{$word} = 1;
3311 CHK("CAMELCASE",
3312 "Avoid CamelCase: <$word>\n" . $herecurr);
3313 }
3310 } 3314 }
3311 } 3315 }
3312 } 3316 }