projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a589392
)
OPP: Update _read_freq() to return the correct frequency
author
Viresh Kumar
<viresh.kumar@linaro.org>
Fri, 21 Jul 2023 09:05:08 +0000
(14:35 +0530)
committer
Viresh Kumar
<viresh.kumar@linaro.org>
Mon, 24 Jul 2023 07:57:03 +0000
(13:27 +0530)
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>
drivers/opp/core.c
patch
|
blob
|
history
diff --git
a/drivers/opp/core.c
b/drivers/opp/core.c
index 2af958dc17ba6b8623885f2f6cf7f690ac9b35ea..b83f651680e77819c75b784be71005406b62f6cb 100644
(file)
--- a/
drivers/opp/core.c
+++ b/
drivers/opp/core.c
@@
-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)