diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2019-08-29 16:48:05 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-09-02 22:38:00 +0200 |
commit | b3ad17c09899d491cf9815a6db44d3f9b3f244e7 (patch) | |
tree | 41be7b5589e058fafc207fcba30a3c032ab49cf8 /include | |
parent | 0d1e16c640ee67dcae65ae8e3c6f58e6d8101047 (diff) |
PM / Domains: Simplify genpd_lookup_dev()
genpd_lookup_dev(), is a bit unnecessary heavy, as it walks the gpd_list to
try to find a valid PM domain corresponding to the device's attached genpd.
Instead of walking the gpd_list, let's use the fact that a genpd always has
the ->runtime_suspend() callback assigned to the genpd_runtime_suspend()
function.
While changing this, let's take the opportunity to also rename
genpd_lookup_dev(), into dev_to_genpd_safe() to better reflect its purpose.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions