From: Minkyu Kang Date: Mon, 15 Mar 2010 07:46:28 +0000 (+0900) Subject: s5pc1xx: universal: remove compiler warning X-Git-Tag: JC10_20100316~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89d9ac27769a48ebee105d85113ac4ced3f14341;p=kernel%2Fu-boot.git 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 --- 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);