From: Madhusudhan Chikkature Date: Tue, 23 Sep 2008 10:48:54 +0000 (+0300) Subject: This patch set up the unused madc request structure members to NULL. X-Git-Tag: v2.6.27-omap1~152 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ec70ed35c230d13bad310433fc40bb0c75a582d6;p=linux-2.6-omap-h63xx.git This patch set up the unused madc request structure members to NULL. Signed-off-by: Madhusudhan Chikkature Signed-off-by: Tony Lindgren --- diff --git a/drivers/power/twl4030_bci_battery.c b/drivers/power/twl4030_bci_battery.c index aef8bbd2836..6a5583839bc 100644 --- a/drivers/power/twl4030_bci_battery.c +++ b/drivers/power/twl4030_bci_battery.c @@ -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];