Hi

This is an update of the battery patch.

Can you add the signed-off-by of the previus two people.

Regards Michael

diff --git a/drivers/power/bq27000_battery.c b/drivers/power/bq27000_battery.c
index bc3856e..7e8b3f8 100644
--- a/drivers/power/bq27000_battery.c
+++ b/drivers/power/bq27000_battery.c
@@ -170,9 +170,12 @@ static int hdq_read16(struct bq27000_device_info *di, int address)
 
 static void bq27000_battery_external_power_changed(struct power_supply *psy)
 {
-	struct bq27000_device_info *di = container_of(psy, struct bq27000_device_info, bat);
+	struct bq27000_device_info *di =
+		container_of(psy, struct bq27000_device_info, bat);
 
 	dev_dbg(di->dev, "%s\n", __FUNCTION__);
+	cancel_delayed_work(&di->work);
+	schedule_delayed_work(&di->work, 0);
 }
 
 static int bq27000_battery_get_property(struct power_supply *psy,


Reply via email to