summaryrefslogtreecommitdiff
path: root/include/linux/pm_opp.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2022-05-31 10:19:19 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2022-07-08 08:57:49 +0300
commitc522ce8a08066b44539e0dd0998b8e3b277a759b (patch)
tree584b6bf68e0c5158e21c929ee0987561890d098d /include/linux/pm_opp.h
parentaee3352f6ecf8cfad1f1ee5838cfc4d37c6b8f75 (diff)
downloadlinux-c522ce8a08066b44539e0dd0998b8e3b277a759b.tar.xz
OPP: Make _generic_set_opp_regulator() a config_regulators() interface
In order to reuse the same code path, i.e. clk_set_rate() from _set_opp(), migrate _generic_set_opp_regulator() to implement a config_regulators() interface. It is renamed to _opp_config_regulator_single() and is set as the preferred config_regulators() interface whenever we have a single regulator available. Note that this also drops code responsible for restoring the voltage/freq in case of errors. We aren't handling that properly currently, restoring only some of the resources while leaving others out (like bandwidth and required OPPs). It is better to drop all of it instead of partial restoration. Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'include/linux/pm_opp.h')
0 files changed, 0 insertions, 0 deletions