mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
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>
This commit is contained in:
parent
a5893928bb
commit
034d6aac21
@ -470,7 +470,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_get_opp_count);
|
||||
/* Helpers to read keys */
|
||||
static unsigned long _read_freq(struct dev_pm_opp *opp, int index)
|
||||
{
|
||||
return opp->rates[0];
|
||||
return opp->rates[index];
|
||||
}
|
||||
|
||||
static unsigned long _read_level(struct dev_pm_opp *opp, int index)
|
||||
|
Loading…
Reference in New Issue
Block a user