aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 893cbd517f89..518cc2e58439 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -4104,7 +4104,9 @@ sub process {
4104#Ignore Page<foo> variants 4104#Ignore Page<foo> variants
4105 $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && 4105 $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ &&
4106#Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show) 4106#Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show)
4107 $var !~ /^(?:[a-z_]*?)_?[a-z][A-Z](?:_[a-z_]+)?$/) { 4107 $var !~ /^(?:[a-z_]*?)_?[a-z][A-Z](?:_[a-z_]+)?$/ &&
4108#Ignore some three character SI units explicitly, like MiB and KHz
4109 $var !~ /^(?:[a-z_]*?)_?(?:[KMGT]iB|[KMGT]?Hz)(?:_[a-z_]+)?$/) {
4108 while ($var =~ m{($Ident)}g) { 4110 while ($var =~ m{($Ident)}g) {
4109 my $word = $1; 4111 my $word = $1;
4110 next if ($word !~ /[A-Z][a-z]|[a-z][A-Z]/); 4112 next if ($word !~ /[A-Z][a-z]|[a-z][A-Z]/);