regulator: qcom-rpmh: Implement get_optimum_mode(), not set_load()
authorDouglas Anderson <dianders@chromium.org>
Tue, 26 Jul 2022 17:20:29 +0000 (10:20 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 15 Aug 2022 11:17:25 +0000 (12:17 +0100)
commitefb0cb50c42734f868908a97f0d93e9208da1f0e
tree9ebbef52cfae17433320e8d775c1088ad0ca3fb0
parentac5d2f049c4b9b466f9757415007f65db949fe24
regulator: qcom-rpmh: Implement get_optimum_mode(), not set_load()

Since we don't actually pass the load to the firmware, switch to using
get_optimum_mode() instead of open-coding it.

This is intended to have no effect other than cleanup.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20220726102024.1.Icc838fe7bf0ef54a014ab2fee8af311654f5342a@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom-rpmh-regulator.c