Skip to content

Commit

Permalink
regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_req…
Browse files Browse the repository at this point in the history
…uest()

"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>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Mar 6, 2024
1 parent 4fe6207 commit e6f0b08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/regulator/lp8788-buck.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e6f0b08

Please sign in to comment.