[PATCH]TWL4030 battery driver madc str fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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<madhu.cr@xxxxxx>

This patch set up the unused madc request structure members to NULL.

Signed-off-by: Madhusudhan Chikkature<madhu.cr@xxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux