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:
Rehas Sachdeva 2016-09-20 17:36:29 +05:30 committed by Greg Kroah-Hartman
parent cf5d327367
commit f3151e0043

View file

@ -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 */