Skip to content

Commit

Permalink
bq27x00_battery: register as non-wakeup power supply.
Browse files Browse the repository at this point in the history
power_supply status changes for the bq27x00 are only
noticed via polling, not via interrupts.  So they are never
the source of events which should reliably wake the system
from suspend.
So it is appropriate to register as a no_ws power source,
just like the ACPI battery.

This removes some debugging messages which occasionally
confusingly identify bq27x00 as a wakeup source.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
neilbrown authored and sre committed Feb 25, 2015
1 parent 65ce1c9 commit 5cd0c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/bq27x00_battery.c
Expand Up @@ -755,7 +755,7 @@ static int bq27x00_powersupply_init(struct bq27x00_device_info *di)
INIT_DELAYED_WORK(&di->work, bq27x00_battery_poll);
mutex_init(&di->lock);

ret = power_supply_register(di->dev, &di->bat);
ret = power_supply_register_no_ws(di->dev, &di->bat);
if (ret) {
dev_err(di->dev, "failed to register battery: %d\n", ret);
return ret;
Expand Down

0 comments on commit 5cd0c76

Please sign in to comment.