From 1c8a054c330b85597248d2f36477c6cbc1d3d9d2 Mon Sep 17 00:00:00 2001 From: Jon Benson Date: Tue, 19 Oct 2010 12:32:37 +1100 Subject: [PATCH] Reverted my latest tweaks to the battery driver. I misunderstood what the code was doing. At 99% it will still supply power to the battery but registers as "full", which I can only assume causes a trickle charge. --- arch/arm/mach-msm/board-htcleo-battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/board-htcleo-battery.c b/arch/arm/mach-msm/board-htcleo-battery.c index 0247f1e7..cdb6ae5d 100644 --- a/arch/arm/mach-msm/board-htcleo-battery.c +++ b/arch/arm/mach-msm/board-htcleo-battery.c @@ -552,7 +552,7 @@ static int battery_adjust_charge_state(struct htcleo_device_info *di) { di->status.battery_full = 0; }*/ - if(di->status.percentage >= 100) + if(di->status.percentage >= 99) { di->status.battery_full = 1; charge_mode = CHARGE_BATT_DISABLE;