projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54fd482
)
s5pc1xx: universal: remove compiler warning
author
Minkyu Kang
<mk7.kang@samsung.com>
Mon, 15 Mar 2010 07:46:28 +0000
(16:46 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Mon, 15 Mar 2010 07:46:28 +0000
(16:46 +0900)
universal.c: In function 'get_adc_value':
universal.c:1163: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~'
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal/universal.c
patch
|
blob
|
history
diff --git
a/board/samsung/universal/universal.c
b/board/samsung/universal/universal.c
index
cbc9c78
..
a61ce91
100644
(file)
--- a/
board/samsung/universal/universal.c
+++ b/
board/samsung/universal/universal.c
@@
-1160,7
+1160,7
@@
static unsigned short get_adc_value(int channel)
do {
udelay(1);
reg = readl(&adc->adccon);
- } while (!
reg & (1 << 15) && loop++ < 1000
);
+ } while (!
(reg & (1 << 15)) && (loop++ < 1000)
);
ret = readl(&adc->adcdat0) & 0xFFF;
sprintf(buf, "pmic ldo %d off", ldonum);