OPP: Switch to use dev_pm_domain_set_performance_state()
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Sep 2023 13:17:11 +0000 (15:17 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 6 Oct 2023 07:07:34 +0000 (12:37 +0530)
To support performance scaling for any kinds of PM domains, let's move away
from using the genpd specific API, dev_pm_genpd_set_performance_state(), to
the common dev_pm_domain_set_performance_state().

No intended functional impact at this point.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c

index ca8d1304b508703fe8cf44ded26d1763ed805fb1..60dca60ac4af8bddb0b08e552aec351111642706 100644 (file)
@@ -1030,7 +1030,7 @@ static int _set_performance_state(struct device *dev, struct device *pd_dev,
        if (!pd_dev)
                return 0;
 
-       ret = dev_pm_genpd_set_performance_state(pd_dev, pstate);
+       ret = dev_pm_domain_set_performance_state(pd_dev, pstate);
        if (ret) {
                dev_err(dev, "Failed to set performance state of %s: %d (%d)\n",
                        dev_name(pd_dev), pstate, ret);