mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 03:33:58 +08:00
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>
This commit is contained in:
parent
12e10bb60b
commit
c3099a5294
@ -619,6 +619,7 @@ extern int dev_pm_put_subsys_data(struct device *dev);
|
|||||||
*/
|
*/
|
||||||
struct dev_pm_domain {
|
struct dev_pm_domain {
|
||||||
struct dev_pm_ops ops;
|
struct dev_pm_ops ops;
|
||||||
|
void (*detach)(struct device *dev, bool power_off);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user