aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2020-10-06 15:21:15 +0200
committerjimqui01 <54316584+jimqui01@users.noreply.github.com>2020-10-06 16:44:47 +0100
commit2b7113f6037e4530e4ade04a32c3054d0236188a (patch)
treeff58b99971121fbd64198167810afad7685296e6
parent6a57743ef700e1b00e9a1b11e93971f76a2ef22f (diff)
module: dvfs: fix get_opp_for_voltage
get_opp_for_voltage() should use voltage instead of level where looking for an OPP. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
-rw-r--r--module/dvfs/src/mod_dvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/dvfs/src/mod_dvfs.c b/module/dvfs/src/mod_dvfs.c
index 1ad4451b..53868a65 100644
--- a/module/dvfs/src/mod_dvfs.c
+++ b/module/dvfs/src/mod_dvfs.c
@@ -201,7 +201,7 @@ static const struct mod_dvfs_opp *get_opp_for_voltage(
for (opp_idx = 0; opp_idx < ctx->opp_count; opp_idx++) {
opp = &ctx->config->opps[opp_idx];
- if (opp->level != voltage)
+ if (opp->voltage != voltage)
continue;
return opp;