diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2018-06-29 13:04:31 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-07-09 12:11:02 +0200 |
commit | 5d6be70add65e3f236642ab0029e356261617cd0 (patch) | |
tree | b385e69e0c3ea5ceb5f43a8c4579fab80e69c32c /drivers/base/power/common.c | |
parent | PM / Domains: dt: Add a power-domain-names property (diff) | |
download | linux-5d6be70add65e3f236642ab0029e356261617cd0.tar.xz linux-5d6be70add65e3f236642ab0029e356261617cd0.zip |
PM / Domains: Introduce option to attach a device by name to genpd
For the multiple PM domain case, let's introduce a new function called
genpd_dev_pm_attach_by_name(). This allows a device to be associated with
its PM domain through genpd, by using a name based lookup.
Note that, genpd_dev_pm_attach_by_name() shall only be called by the driver
core / PM core, similar to how the existing dev_pm_domain_attach_by_id()
makes use of genpd_dev_pm_attach_by_id(). However, this is implemented by
following changes on top.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/common.c')
0 files changed, 0 insertions, 0 deletions