regulator: s2mps11: Consistently use local variable
Subsystems (3)
Krzysztof Kozlowski
maintainerPATCH RESEND 1/1 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.
--- drivers/regulator/s2mps11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/s2mps11.c +1 -1
@@ -1226,7 +1226,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev) goto out; } -if (s2mps11->ext_control_gpiod[i]) { +if (config.ena_gpiod) { ret =s2mps14_pmic_enable_ext_control (s2mps11, regulator);if (ret <0 ) {
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "regulator: s2mps11: Consistently use local variable" to the regulator tree
The patch
regulator: s2mps11: Consistently use local variable
has been applied to the regulator tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
d57d90f4443bd725b3facdc6130a1940af4560c4Mon Sep 17 00:00:00 2001
From: Krzysztof Kozlowski <[email protected]>
Date: Mon, 9 Sep 2019 17:57:23 +0200
Subject: [PATCH] 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.
--- drivers/regulator/s2mps11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/s2mps11.c +1 -1
@@ -1226,7 +1226,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev) goto out; } -if (s2mps11->ext_control_gpiod[i]) { +if (config.ena_gpiod) { ret =s2mps14_pmic_enable_ext_control (s2mps11, regulator);if (ret <0 ) {
Signature · 1 line
2.20.1