projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf5d327
)
staging: sm750fb: Use BIT(x) macro
author
Rehas Sachdeva
<
[email protected]
>
Tue, 20 Sep 2016 12:06:29 +0000
(17:36 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 22 Sep 2016 09:54:48 +0000
(11:54 +0200)
Replaces left shift operation (1 << d) by BIT(x) macro.
Signed-off-by: Rehas Sachdeva <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/sm750fb/ddk750_chip.c
patch
|
blob
|
history
diff --git
a/drivers/staging/sm750fb/ddk750_chip.c
b/drivers/staging/sm750fb/ddk750_chip.c
index f557b6dc9cd32b193186dec406d06b74b344202c..a887f327db5a0c72bd5f9337be89c29a0f453d2f 100644
(file)
--- a/
drivers/staging/sm750fb/ddk750_chip.c
+++ b/
drivers/staging/sm750fb/ddk750_chip.c
@@
-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 */