aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2019-09-09 17:57:23 +0200
committerMark Brown <broonie@kernel.org>2019-09-10 11:03:30 +0100
commitd57d90f4443bd725b3facdc6130a1940af4560c4 (patch)
treefd0bdfa0287a89541a000cbc92d4448e6143df8e /drivers/regulator
parentregulator: lp87565: Simplify lp87565_buck_set_ramp_delay (diff)
downloadlinux-dev-d57d90f4443bd725b3facdc6130a1940af4560c4.tar.xz
linux-dev-d57d90f4443bd725b3facdc6130a1940af4560c4.zip
regulator: s2mps11: Consistently use local variable
The value under 's2mps11->ext_control_gpiod[i]' is assigned to local variable and used in probe in one place before. Use it consistently later so code will be easier to read. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20190909155723.24734-1-krzk@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/s2mps11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c
index 054baaadfdfd..5bc00884cf51 100644
--- a/drivers/regulator/s2mps11.c
+++ b/drivers/regulator/s2mps11.c
@@ -1226,7 +1226,7 @@ common_reg:
goto out;
}
- if (s2mps11->ext_control_gpiod[i]) {
+ if (config.ena_gpiod) {
ret = s2mps14_pmic_enable_ext_control(s2mps11,
regulator);
if (ret < 0) {