Commit 43ce0b53 authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Greg Kroah-Hartman

staging: sm750fb: Rename miniDiff

Rename miniDiff to mini_diff to avoid CamelCase. Problem found using
checkpatch.pl
CHECK: Avoid CamelCase: <miniDiff>
Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a76f23d6
...@@ -359,7 +359,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) ...@@ -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 */ /* as sm750 register definition, N located in 2,15 and M located in 1,255 */
int N, M, X, d; int N, M, X, d;
int xcnt; int xcnt;
int miniDiff; int mini_diff;
unsigned int RN, quo, rem, fl_quo; unsigned int RN, quo, rem, fl_quo;
unsigned int input, request; unsigned int input, request;
unsigned int tmpClock, ret; unsigned int tmpClock, ret;
...@@ -374,7 +374,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) ...@@ -374,7 +374,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
#endif #endif
ret = 0; ret = 0;
miniDiff = ~0; mini_diff = ~0;
request = request_orig / 1000; request = request_orig / 1000;
input = pll->inputFreq / 1000; input = pll->inputFreq / 1000;
...@@ -407,12 +407,12 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) ...@@ -407,12 +407,12 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
tmpClock = pll->inputFreq * M / N / X; tmpClock = pll->inputFreq * M / N / X;
diff = absDiff(tmpClock, request_orig); diff = absDiff(tmpClock, request_orig);
if (diff < miniDiff) { if (diff < mini_diff) {
pll->M = M; pll->M = M;
pll->N = N; pll->N = N;
pll->OD = xparm[d].od; pll->OD = xparm[d].od;
pll->POD = xparm[d].pod; pll->POD = xparm[d].pod;
miniDiff = diff; mini_diff = diff;
ret = tmpClock; ret = tmpClock;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment