opp: Prepare for ->set_opp() helper to work without regulators
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 19 Jan 2021 06:28:58 +0000 (11:58 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 04:57:39 +0000 (10:27 +0530)
commit38bb34393804b79eff647bdf96762db5efce392c
tree802bbdfbe035ad2af4337874435acf0024708b10
parentb6ecd5d4f6941628d0140735d3f05eb61907141e
opp: Prepare for ->set_opp() helper to work without regulators

Until now the ->set_opp() helper (i.e. special implementation for
setting the OPPs for platforms) was implemented only to take care of
multiple regulators case, but going forward we would need that for other
use cases as well.

This patch prepares for that by allocating the regulator specific part
from dev_pm_opp_set_regulators() and the opp helper part from
dev_pm_opp_register_set_opp_helper().

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
drivers/opp/core.c
drivers/opp/opp.h