]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:18 +0000 (20:02 +0100)
commit9565dd2144cf205730e07a714db93c168995dd9c
tree13db207e7e043034608a1de4265893076ee1b472
parentd1dda680ffbbd1c52dc0e4e0ff9d6e3ef3885ef4
OPP: Use opp_table->regulators to verify no regulator case

[ Upstream commit 90e3577b5feb42bac1269e16bb3d2bdd8f6df40f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/opp/core.c