diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 519da711cb12d7ee5db6a1bc2f81b4bbb684b2af..6bbc24e6691634f228be906790e5fa9030476176 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5320,6 +5320,8 @@ sub process {
 #CamelCase
 			if ($var !~ /^$Constant$/ &&
 			    $var =~ /[A-Z][a-z]|[a-z][A-Z]/ &&
+#Ignore some autogenerated defines and enum values
+			    $var !~ /^(?:[A-Z]+_){1,5}[A-Z]{1,3}[a-z]/ &&
 #Ignore Page<foo> variants
 			    $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ &&
 #Ignore SI style variants like nS, mV and dB