Skip to content

Commit e6f0b08

Browse files
Dan Carpenterbroonie
authored andcommitted
regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_request()
"gpio2" as intended here, not "gpio1". Fixes: 95daa86 ("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>
1 parent 4fe6207 commit e6f0b08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/lp8788-buck.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ static int lp8788_dvs_gpio_request(struct platform_device *pdev,
430430
gpiod_set_consumer_name(buck->gpio1, "LP8788_B2_DVS1");
431431

432432
buck->gpio2 = devm_gpiod_get_index(dev, "dvs", 1, GPIOD_OUT_LOW);
433-
if (IS_ERR(buck->gpio1))
434-
return PTR_ERR(buck->gpio1);
435-
gpiod_set_consumer_name(buck->gpio1, "LP8788_B2_DVS2");
433+
if (IS_ERR(buck->gpio2))
434+
return PTR_ERR(buck->gpio2);
435+
gpiod_set_consumer_name(buck->gpio2, "LP8788_B2_DVS2");
436436

437437
buck->dvs = pdata->buck2_dvs;
438438
break;

0 commit comments

Comments
 (0)