Skip to content

Commit c3099a5

Browse files
storulfrafaeljw
authored andcommitted
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 <[email protected]> Reviewed-by: Dmitry Torokhov <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 12e10bb commit c3099a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/pm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ extern int dev_pm_put_subsys_data(struct device *dev);
619619
*/
620620
struct dev_pm_domain {
621621
struct dev_pm_ops ops;
622+
void (*detach)(struct device *dev, bool power_off);
622623
};
623624

624625
/*

0 commit comments

Comments
 (0)