summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2014-05-28 15:23:37 +0800
committerChanho Park <cometzero@review.tizen.org>2014-10-07 18:23:21 -0700
commit16077b7053be760188a151771aa9ed75ba033f70 (patch)
treea580d9133e065cab9b243b9f43477c7e5135b42f /include
parentf24ec52206377fe11df604e3de6f52b2e0a0f4c2 (diff)
downloadlinux-3.10-16077b7053be760188a151771aa9ed75ba033f70.tar.gz
linux-3.10-16077b7053be760188a151771aa9ed75ba033f70.tar.bz2
linux-3.10-16077b7053be760188a151771aa9ed75ba033f70.zip
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. Change-Id: If0ea9720c9c2161e3a33db0988bcd464b79f2b91 Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/power_supply.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index 94562393bb6..4e2fa3316c6 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -264,6 +264,8 @@ static inline int power_supply_is_system_supplied(void) { return -ENOSYS; }
extern int power_supply_register(struct device *parent,
struct power_supply *psy);
+extern int power_supply_register_no_ws(struct device *parent,
+ struct power_supply *psy);
extern void power_supply_unregister(struct power_supply *psy);
extern int power_supply_powers(struct power_supply *psy, struct device *dev);