mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] checkpatch: forgive use of mixed case variables measuring units
@ 2013-05-29 11:02 Phil Carmody
  2013-05-29 11:24 ` Joe Perches
  0 siblings, 1 reply; 7+ messages in thread
From: Phil Carmody @ 2013-05-29 11:02 UTC (permalink / raw)
  To: apw, joe; +Cc: linux-kernel, Phil Carmody

I don't think anyone really has an issue with things like max_mV.
And whilst nS et al. may not be SI standard, at least it's clear
what they represent.

Signed-off-by: Phil Carmody <phil.carmody@partner.samsung.com>
---
 scripts/checkpatch.pl |    1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index b954de5..c29fd2f 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2940,6 +2940,7 @@ sub process {
 			if ($var !~ /$Constant/ &&
 			    $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ &&
 			    $var !~ /"^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ &&
+			    $var !~ /^[a-z_]*_[numk][VAS]$/ &&
 			    !defined $camelcase{$var}) {
 				$camelcase{$var} = 1;
 				WARN("CAMELCASE",
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-12 16:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 11:02 [PATCH] checkpatch: forgive use of mixed case variables measuring units Phil Carmody
2013-05-29 11:24 ` Joe Perches
2013-06-12 12:59   ` Phil Carmody
2013-06-12 16:02     ` Joe Perches
2013-06-12 16:17       ` Jason Cooper
2013-06-12 16:26         ` Joe Perches
2013-06-12 16:21       ` [PATCH] checkpatch: CamelCase - ignore SI unit variants like "_uV" Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®