From b4136a36f31a65d0998a328465df9e8e2ba93166 Mon Sep 17 00:00:00 2001 From: Michael Trimarchi Date: Thu, 23 Apr 2009 09:12:14 +0200 Subject: 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 Signed-off-by: Daniel Willmann --- drivers/power/bq27000_battery.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/power') 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, -- cgit v1.2.3