]> asedeno.scripts.mit.edu Git - linux.git/commit
OPP: Introduce dev_pm_opp_find_freq_ceil_by_volt()
authorAndrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
Fri, 29 Mar 2019 06:46:10 +0000 (14:46 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 10 Apr 2019 06:43:31 +0000 (12:13 +0530)
commit2f36bde0fc8f1ab79d54bd2caa7c1cf874fd2206
treea48df1456492be0d18de709395bfca06fdc9d261
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
OPP: Introduce dev_pm_opp_find_freq_ceil_by_volt()

This patch introduces a new helper routine in the OPP core, which
returns the OPP with the highest frequency which has voltage less than
or equal to the target voltage passed to the helper.

Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
[ Viresh: Massaged the commit log and renamed the helper with some
cleanups. ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h