aboutsummaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorMichael Trimarchi <trimarchi@gandalf.sssup.it>2009-04-23 09:12:14 +0200
committerNelson Castillo <arhuaco@freaks-unidos.net>2009-04-23 18:38:46 -0500
commitb4136a36f31a65d0998a328465df9e8e2ba93166 (patch)
tree86cf9c6954fb279907d2015a5bb7af1d75437f12 /drivers/power
parent0b9d21bf5d05d5dd909425a67a8be2eb1c1fc579 (diff)
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@panicking.kicks-ass.org> Signed-off-by: Daniel Willmann <daniel@totalueberwachung.de>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/bq27000_battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/bq27000_battery.c b/drivers/power/bq27000_battery.c
index bc3856e5755..9f0f1a96720 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,