Commit a055204b authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Bartosz Golaszewski

leds: gpio: switch to using devm_fwnode_gpiod_get()

devm_fwnode_get_gpiod_from_child() is going away as the name is too
unwieldy, let's switch to using the new devm_fwnode_gpiod_get().
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 80280df7
...@@ -151,8 +151,7 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev) ...@@ -151,8 +151,7 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev)
* will be updated after LED class device is registered, * will be updated after LED class device is registered,
* Only then the final LED name is known. * Only then the final LED name is known.
*/ */
led.gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL, child, led.gpiod = devm_fwnode_gpiod_get(dev, child, NULL, GPIOD_ASIS,
GPIOD_ASIS,
NULL); NULL);
if (IS_ERR(led.gpiod)) { if (IS_ERR(led.gpiod)) {
fwnode_handle_put(child); fwnode_handle_put(child);
......
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