Skip to content

Commit 55089e1

Browse files
author
Ulf Hansson
committed
pmdomain: qcom: rpmhpd: Drop the ->opp_to_performance_state() callback
Since commit 7c41cdc ("OPP: Simplify the over-designed pstate <-> level dance"), there is no longer any need for genpd providers to assign the ->opp_to_performance_state(), hence let's drop it. Cc: Bjorn Andersson <andersson@kernel.org> Cc: Konrad Dybcio <konrad.dybcio@linaro.org> Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20231012153607.101465-1-ulf.hansson@linaro.org
1 parent 40d7f4d commit 55089e1

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/pmdomain/qcom/rpmhpd.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -743,12 +743,6 @@ static int rpmhpd_set_performance_state(struct generic_pm_domain *domain,
743743
return ret;
744744
}
745745

746-
static unsigned int rpmhpd_get_performance_state(struct generic_pm_domain *genpd,
747-
struct dev_pm_opp *opp)
748-
{
749-
return dev_pm_opp_get_level(opp);
750-
}
751-
752746
static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd)
753747
{
754748
int i;
@@ -838,7 +832,6 @@ static int rpmhpd_probe(struct platform_device *pdev)
838832
rpmhpds[i]->pd.power_off = rpmhpd_power_off;
839833
rpmhpds[i]->pd.power_on = rpmhpd_power_on;
840834
rpmhpds[i]->pd.set_performance_state = rpmhpd_set_performance_state;
841-
rpmhpds[i]->pd.opp_to_performance_state = rpmhpd_get_performance_state;
842835
pm_genpd_init(&rpmhpds[i]->pd, NULL, true);
843836

844837
data->domains[i] = &rpmhpds[i]->pd;

0 commit comments

Comments
 (0)