projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12e10bb
)
PM / Domains: Add a detach callback to the struct dev_pm_domain
author
Ulf Hansson
<ulf.hansson@linaro.org>
Fri, 19 Sep 2014 18:27:34 +0000
(20:27 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 22 Sep 2014 13:57:39 +0000
(15:57 +0200)
The intent of this callback is to simplify detachment of devices from
their PM domains. Further patches will show the benefit.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/pm.h
b/include/linux/pm.h
index 72c0fe098a27871aa1ea44ea0076d45ab696ea2e..1022ba1eb4de9ccf2127a9f7f5c424f3d32f6c90 100644
(file)
--- a/
include/linux/pm.h
+++ b/
include/linux/pm.h
@@
-619,6
+619,7
@@
extern int dev_pm_put_subsys_data(struct device *dev);
*/
struct dev_pm_domain {
struct dev_pm_ops ops;
+ void (*detach)(struct device *dev, bool power_off);
};
/*