projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fe6207
)
regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_request()
author
Dan Carpenter
<dan.carpenter@linaro.org>
Wed, 6 Mar 2024 13:52:29 +0000
(16:52 +0300)
committer
Mark Brown
<broonie@kernel.org>
Wed, 6 Mar 2024 14:03:32 +0000
(14:03 +0000)
"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>
Link:
https://msgid.link/r/19f62cc2-bdcf-46f7-a5c5-971ef05e1ea7@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp8788-buck.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/lp8788-buck.c
b/drivers/regulator/lp8788-buck.c
index 712eaa6ff8ab37826f4d46b9c9ad9fc53b85c0f6..2ade249ab6df335b10c01c2122d49dc6082f4fbf 100644
(file)
--- 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->gpio
1
))
- return PTR_ERR(buck->gpio
1
);
- gpiod_set_consumer_name(buck->gpio
1
, "LP8788_B2_DVS2");
+ if (IS_ERR(buck->gpio
2
))
+ return PTR_ERR(buck->gpio
2
);
+ gpiod_set_consumer_name(buck->gpio
2
, "LP8788_B2_DVS2");
buck->dvs = pdata->buck2_dvs;
break;