From 89d9ac27769a48ebee105d85113ac4ced3f14341 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Mon, 15 Mar 2010 16:46:28 +0900 Subject: [PATCH] s5pc1xx: universal: remove compiler warning 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 --- board/samsung/universal/universal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index cbc9c78..a61ce91 100644 --- 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); -- 2.7.4