diff options
author | Jeffrey Hugo <jeffrey.l.hugo@gmail.com> | 2019-06-13 23:25:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-17 16:50:11 +0200 |
commit | ba576a6232dc06605f4edfaeea9b526ba7724f84 (patch) | |
tree | f269ddb88b285247254ea34ed302cf8424e9120a /drivers/soc/tegra/fuse/speedo-tegra114.c | |
parent | regulator: qcom_spmi: enable linear range info (diff) | |
download | linux-ba576a6232dc06605f4edfaeea9b526ba7724f84.tar.xz linux-ba576a6232dc06605f4edfaeea9b526ba7724f84.zip |
regulator: qcom_spmi: Refactor get_mode/set_mode
spmi_regulator_common_get_mode and spmi_regulator_common_set_mode use
multi-level ifs which mirror a switch statement. Refactor to use a switch
statement to make the code flow more clear.
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/soc/tegra/fuse/speedo-tegra114.c')
0 files changed, 0 insertions, 0 deletions