[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, andy-tracking, updated. upstream/20090303.gitb9de904e-140-g23b564c
Nelson Castillo
arhuaco at freaks-unidos.net
Mon Jun 8 17:30:09 UTC 2009
The following commit has been merged in the andy-tracking branch:
commit b4136a36f31a65d0998a328465df9e8e2ba93166
Author: Michael Trimarchi <trimarchi at gandalf.sssup.it>
Date: Thu Apr 23 09:12:14 2009 +0200
Update status battery
This patch adds the call to the worker in
bq27000_battery_external_power_changed. Now (un)plugging the USB cable
effects the battery status soon. I don't know if it is possible call
the status change directly.
Signed-off-by: Michael Trimarchi <michael at panicking.kicks-ass.org>
Signed-off-by: Daniel Willmann <daniel at totalueberwachung.de>
diff --git a/drivers/power/bq27000_battery.c b/drivers/power/bq27000_battery.c
index bc3856e..9f0f1a9 100644
--- a/drivers/power/bq27000_battery.c
+++ b/drivers/power/bq27000_battery.c
@@ -173,6 +173,7 @@ static void bq27000_battery_external_power_changed(struct power_supply *psy)
struct bq27000_device_info *di = container_of(psy, struct bq27000_device_info, bat);
dev_dbg(di->dev, "%s\n", __FUNCTION__);
+ schedule_delayed_work(&di->work, 0);
}
static int bq27000_battery_get_property(struct power_supply *psy,
--
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko
More information about the pkg-fso-commits
mailing list