]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
This patch set up the unused madc request structure members to NULL.
authorMadhusudhan Chikkature <madhu.cr@ti.com>
Tue, 23 Sep 2008 10:48:54 +0000 (13:48 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 23 Sep 2008 10:48:54 +0000 (13:48 +0300)
Signed-off-by: Madhusudhan Chikkature<madhu.cr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
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];