s5pc1xx: universal: remove compiler warning
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 15 Mar 2010 07:46:28 +0000 (16:46 +0900)
committerMinkyu 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

index cbc9c78..a61ce91 100644 (file)
@@ -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);