Commit e6f0b08a authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

regulator: lp8788-buck: fix copy and paste bug in lp8788_dvs_gpio_request()

"gpio2" as intended here, not "gpio1".

Fixes: 95daa868 ("regulator: lp8788-buck: Fully convert to GPIO descriptors")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://msgid.link/r/19f62cc2-bdcf-46f7-a5c5-971ef05e1ea7@moroto.mountainSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4fe62075
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment