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

Configure Feed

Select the types of activity you want to include in your feed.

regulator: s5m8767: switch to using devm_fwnode_gpiod_get

devm_gpiod_get_from_of_node() is being retired in favor of
devm_fwnode_gpiod_get_index(), that behaves similar to
devm_gpiod_get_index(), but can work with arbitrary firmware node. It
will also be able to support secondary software nodes.

Let's switch this driver over.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20191004231017.130290-2-dmitry.torokhov@gmail.com
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dmitry Torokhov and committed by
Mark Brown
5be0e549 03c3cf00

+3 -4
+3 -4
drivers/regulator/s5m8767.c
··· 567 567 continue; 568 568 } 569 569 570 - rdata->ext_control_gpiod = devm_gpiod_get_from_of_node( 570 + rdata->ext_control_gpiod = devm_fwnode_gpiod_get( 571 571 &pdev->dev, 572 - reg_np, 573 - "s5m8767,pmic-ext-control-gpios", 574 - 0, 572 + of_fwnode_handle(reg_np), 573 + "s5m8767,pmic-ext-control", 575 574 GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE, 576 575 "s5m8767"); 577 576 if (PTR_ERR(rdata->ext_control_gpiod) == -ENOENT)