Hi Tony,
This patch set up the unused memebrs of the madc structure used in the battery
driver to NULL.
Regards,
Madhu
-------------------------------------------------------
From: Madhusudhan Chikkature<[EMAIL PROTECTED]>
This patch set up the unused madc request structure members to NULL.
Signed-off-by: Madhusudhan Chikkature<[EMAIL PROTECTED]>
---
drivers/power/twl4030_bci_battery.c | 2 ++
1 files changed, 2 insertions(+)
Index: linux-omap-2.6/drivers/power/twl4030_bci_battery.c
===================================================================
--- linux-omap-2.6.orig/drivers/power/twl4030_bci_battery.c 2008-09-10
10:16:20.000000000 +0530
+++ linux-omap-2.6/drivers/power/twl4030_bci_battery.c 2008-09-18
11:06:07.000000000 +0530
@@ -604,7 +604,9 @@ static int twl4030backupbatt_voltage(voi
struct twl4030_madc_request req;
req.channels = (1 << 9);
+ req.do_avg = NULL;
req.method = TWL4030_MADC_SW1;
+ req.active = NULL;
req.func_cb = NULL;
twl4030_madc_conversion(&req);
temp = (u16)req.rbuf[9];
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html