power_supply: allow power supply devices registered w/o wakeup source
authorZhang Rui <rui.zhang@intel.com>
Wed, 28 May 2014 07:23:37 +0000 (15:23 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 May 2014 11:45:25 +0000 (13:45 +0200)
commit9113e260767b1cb44f8da0e5922e1a9a5417c4b8
tree12753a12dfda868b7c993d9c9b182abf881158d6
parent1ac5aaa67290b397712e4410de7f067d5cd85871
power_supply: allow power supply devices registered w/o wakeup source

Currently, all the power supply devices are registered with wakeup source,
this results in that every power_supply_changed() invocation brings
the system out of suspend-to-freeze state.

This is overkill as some device drivers, e.g. ACPI battery driver,
have the ability to check the device status and wake up the system
from sleeping only when necessary.

Thus introduce a new API which allows device to be registered
w/o wakeup source.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/power/power_supply_core.c
include/linux/power_supply.h