aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-09-19 20:27:34 +0200
committerMark Brown <broonie@kernel.org>2014-12-12 20:06:03 +0000
commit99afc71dc99ec0462595440df73d721b447d7bcd (patch)
treeb235cf9aade2ebe658213f79b43e58f59ce04b2b
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff)
PM / Domains: Add a detach callback to the struct dev_pm_domain
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> (cherry picked from commit c3099a5294f2c7266234e8ea35cbffc20a41aa9a) Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--include/linux/pm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h
index a224c7f5c377..b8760601ecbe 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -575,6 +575,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);
};
/*