diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-10 02:14:27 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-12 20:33:51 -0700 |
commit | 43ce0b538a5e2b8117337e6509f667943222ef3e (patch) | |
tree | ede089a534204a881c15c8f0cc704d08ae2771f8 /drivers/staging/sm750fb | |
parent | a76f23d66df1cf41c759fe877e77441c9dd65e5e (diff) |
staging: sm750fb: Rename miniDiff
Rename miniDiff to mini_diff to avoid CamelCase. Problem found using
checkpatch.pl
CHECK: Avoid CamelCase: <miniDiff>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r-- | drivers/staging/sm750fb/ddk750_chip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index 453c86e5b0e0..8b8ec14965a1 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -359,7 +359,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) /* as sm750 register definition, N located in 2,15 and M located in 1,255 */ int N, M, X, d; int xcnt; - int miniDiff; + int mini_diff; unsigned int RN, quo, rem, fl_quo; unsigned int input, request; unsigned int tmpClock, ret; @@ -374,7 +374,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) #endif ret = 0; - miniDiff = ~0; + mini_diff = ~0; request = request_orig / 1000; input = pll->inputFreq / 1000; @@ -407,12 +407,12 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) tmpClock = pll->inputFreq * M / N / X; diff = absDiff(tmpClock, request_orig); - if (diff < miniDiff) { + if (diff < mini_diff) { pll->M = M; pll->N = N; pll->OD = xparm[d].od; pll->POD = xparm[d].pod; - miniDiff = diff; + mini_diff = diff; ret = tmpClock; } } |