OSDN Git Service

opp: Allow _generic_set_opp_regulator() to work for non-freq devices
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 21 Jan 2021 07:08:13 +0000 (12:38 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 04:58:00 +0000 (10:28 +0530)
commit3f62670fcca4af3fe6492100a548603831ecc61d
treeae0caf4916c5737ec795451d839a0ee34cfd7384
parentf0b88fa45595254fa51427bd8ca321732e2eb73d
opp: Allow _generic_set_opp_regulator() to work for non-freq devices

The _generic_set_opp_regulator() helper will be used for devices which
don't change frequency (like power domains, etc.) later on, prepare for
that by not relying on frequency for making decisions here.

While at it, update its parameters to pass only what is necessary.

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