* [PATCH] regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_request()
@ 2024-03-06 13:52 Dan Carpenter
2024-03-06 15:54 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2024-03-06 13:52 UTC (permalink / raw)
To: Linus Walleij
Cc: Liam Girdwood, Mark Brown, Lee Jones, linux-kernel, kernel-janitors
"gpio2" as intended here, not "gpio1".
Fixes: 95daa868f22b ("regulator: lp8788-buck: Fully convert to GPIO descriptors")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
drivers/regulator/lp8788-buck.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/lp8788-buck.c b/drivers/regulator/lp8788-buck.c
index 712eaa6ff8ab..2ade249ab6df 100644
--- a/drivers/regulator/lp8788-buck.c
+++ b/drivers/regulator/lp8788-buck.c
@@ -430,9 +430,9 @@ static int lp8788_dvs_gpio_request(struct platform_device *pdev,
gpiod_set_consumer_name(buck->gpio1, "LP8788_B2_DVS1");
buck->gpio2 = devm_gpiod_get_index(dev, "dvs", 1, GPIOD_OUT_LOW);
- if (IS_ERR(buck->gpio1))
- return PTR_ERR(buck->gpio1);
- gpiod_set_consumer_name(buck->gpio1, "LP8788_B2_DVS2");
+ if (IS_ERR(buck->gpio2))
+ return PTR_ERR(buck->gpio2);
+ gpiod_set_consumer_name(buck->gpio2, "LP8788_B2_DVS2");
buck->dvs = pdata->buck2_dvs;
break;
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_request()
2024-03-06 13:52 [PATCH] regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_request() Dan Carpenter
@ 2024-03-06 15:54 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2024-03-06 15:54 UTC (permalink / raw)
To: Linus Walleij, Dan Carpenter
Cc: Liam Girdwood, Lee Jones, linux-kernel, kernel-janitors
On Wed, 06 Mar 2024 16:52:29 +0300, Dan Carpenter wrote:
> "gpio2" as intended here, not "gpio1".
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_request()
commit: e6f0b08a036734552628ab788ecb528ca53814ab
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-06 15:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-06 13:52 [PATCH] regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_request() Dan Carpenter
2024-03-06 15:54 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®