Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

"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>

authored by

Dan Carpenter and committed by
Mark Brown
e6f0b08a 4fe62075

+3 -3
+3 -3
drivers/regulator/lp8788-buck.c
··· 430 430 gpiod_set_consumer_name(buck->gpio1, "LP8788_B2_DVS1"); 431 431 432 432 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"); 436 436 437 437 buck->dvs = pdata->buck2_dvs; 438 438 break;