]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/power/twl4030_bci_battery.c
This patch set up the unused madc request structure members to NULL.
[linux-2.6-omap-h63xx.git] / drivers / power / twl4030_bci_battery.c
index aef8bbd2836f4181b37dd52659ed34432391136d..6a5583839bc12d5e4cd2359c26fc5be2076a55c5 100644 (file)
@@ -604,7 +604,9 @@ static int twl4030backupbatt_voltage(void)
        struct twl4030_madc_request req;
 
        req.channels = (1 << 9);
+       req.do_avg = 0;
        req.method = TWL4030_MADC_SW1;
+       req.active = 0;
        req.func_cb = NULL;
        twl4030_madc_conversion(&req);
        temp = (u16)req.rbuf[9];