mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 21:35:07 +00:00
pmdomain: qcom: rpmhpd: Drop the ->opp_to_performance_state() callback
Since commit 7c41cdcd3bbe ("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
This commit is contained in:
parent
40d7f4d2e6
commit
55089e1fb2
@ -743,12 +743,6 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static unsigned int rpmhpd_get_performance_state(struct generic_pm_domain *genpd,
|
||||
struct dev_pm_opp *opp)
|
||||
{
|
||||
return dev_pm_opp_get_level(opp);
|
||||
}
|
||||
|
||||
static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd)
|
||||
{
|
||||
int i;
|
||||
@ -838,7 +832,6 @@ static int rpmhpd_probe(struct platform_device *pdev)
|
||||
rpmhpds[i]->pd.power_off = rpmhpd_power_off;
|
||||
rpmhpds[i]->pd.power_on = rpmhpd_power_on;
|
||||
rpmhpds[i]->pd.set_performance_state = rpmhpd_set_performance_state;
|
||||
rpmhpds[i]->pd.opp_to_performance_state = rpmhpd_get_performance_state;
|
||||
pm_genpd_init(&rpmhpds[i]->pd, NULL, true);
|
||||
|
||||
data->domains[i] = &rpmhpds[i]->pd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user