regulator: s2mps11: Consistently use local variable
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 9 Sep 2019 15:57:23 +0000 (17:57 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 10 Sep 2019 10:03:30 +0000 (11:03 +0100)
commitd57d90f4443bd725b3facdc6130a1940af4560c4
treefd0bdfa0287a89541a000cbc92d4448e6143df8e
parent6cadd8ae213678be654042ff8655630d84272ec3
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>
drivers/regulator/s2mps11.c