OPP: Add support for config_regulators() helper
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 4 Jul 2022 08:15:08 +0000 (13:45 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 Jul 2022 05:57:49 +0000 (11:27 +0530)
commitaee3352f6ecf8cfad1f1ee5838cfc4d37c6b8f75
tree9563cb20adcf0ebb8d6587f50558972cdc94bbad
parent298098e55a6fcc176a5af52cd689f33577ead5ca
OPP: Add support for config_regulators() helper

Extend the dev_pm_opp_set_config() interface to allow adding
config_regulators() helpers. This helper will be called to set the
voltages of the regulators from the regular path in _set_opp(), while we
are trying to change the OPP.

This will eventually replace the custom set_opp() helper.

Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/opp.h
include/linux/pm_opp.h