mirror of https://gitee.com/openkylin/linux.git
staging: sm750fb: Use BIT(x) macro
Replaces left shift operation (1 << d) by BIT(x) macro. Signed-off-by: Rehas Sachdeva <aquannie@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cf5d327367
commit
f3151e0043
|
@ -349,7 +349,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
|
|||
fl_quo = (rem * 10000 / input);
|
||||
|
||||
for (d = max_d; d >= 0; d--) {
|
||||
X = (1 << d);
|
||||
X = BIT(d);
|
||||
M = quo * X;
|
||||
M += fl_quo * X / 10000;
|
||||
/* round step */
|
||||
|
|
Loading…
Reference in New Issue