]> git.baikalelectronics.ru Git - kernel.git/commit
OPP: Use opp_table->regulators to verify no regulator case
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 11 Dec 2018 11:02:47 +0000 (16:32 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 11 Dec 2018 11:02:47 +0000 (16:32 +0530)
commit027c9b9a874f1ee2f4b201cd51a8308472dc6323
tree52193e996c9bbc24c0bcb2284e0ab187278e3b9a
parented069887f078b8a5a0faabf55625652bb3e483f5
OPP: Use opp_table->regulators to verify no regulator case

The value of opp_table->regulator_count is not very consistent right now
and it may end up being 0 while we do have a "opp-microvolt" property in
the OPP table. It was kept that way as we used to check if any
regulators are set with the OPP core for a device or not using value of
regulator_count.

Lets use opp_table->regulators for that purpose as the meaning of
regulator_count is going to change in the later patches.

Reported-by: Quentin Perret <quentin.perret@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c