mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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>
This commit is contained in:
parent
6cadd8ae21
commit
d57d90f444
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue