Skip to content

Commit 034d6aa

Browse files
committed
OPP: Update _read_freq() to return the correct frequency
Now that we support finding indexed frequencies, lets update _read_freq() to return the right one. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
1 parent a589392 commit 034d6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/opp/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_get_opp_count);
470470
/* Helpers to read keys */
471471
static unsigned long _read_freq(struct dev_pm_opp *opp, int index)
472472
{
473-
return opp->rates[0];
473+
return opp->rates[index];
474474
}
475475

476476
static unsigned long _read_level(struct dev_pm_opp *opp, int index)

0 commit comments

Comments
 (0)