]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mfd/wm8350-core.c
mfd: wm8350 tries reaches -1
[linux-2.6-omap-h63xx.git] / drivers / mfd / wm8350-core.c
index e5e82c7cc5236a3ceee7e787cabe94edef284cbc..ea3801833176a32b001eddbbf43212b2ee9e9334 100644 (file)
@@ -1111,7 +1111,7 @@ int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale, int vref)
        do {
                schedule_timeout_interruptible(1);
                reg = wm8350_reg_read(wm8350, WM8350_DIGITISER_CONTROL_1);
-       } while (tries-- && (reg & WM8350_AUXADC_POLL));
+       } while (--tries && (reg & WM8350_AUXADC_POLL));
 
        if (!tries)
                dev_err(wm8350->dev, "adc chn %d read timeout\n", channel);