diff options
author | NeilBrown <neilb@suse.de> | 2015-02-24 03:17:32 (GMT) |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-02-25 20:36:35 (GMT) |
commit | 5cd0c76d69a1a4bef3a84c3177216b227a4d2448 (patch) | |
tree | 05a32ac913edaeb77e77162e5b26c5167eb1cb00 /drivers/power | |
parent | 65ce1c954985e3d9805124d061ce63a63aa625ce (diff) | |
download | linux-5cd0c76d69a1a4bef3a84c3177216b227a4d2448.tar.xz |
bq27x00_battery: register as non-wakeup power supply.
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/bq27x00_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index b72ba7c..93d2b7f 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c @@ -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; |