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

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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Dmitry Torokhov and committed by
Bartosz Golaszewski
a055204b 80280df7

+2 -3
+2 -3
drivers/leds/leds-gpio.c
··· 151 151 * will be updated after LED class device is registered, 152 152 * Only then the final LED name is known. 153 153 */ 154 - led.gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL, child, 155 - GPIOD_ASIS, 156 - NULL); 154 + led.gpiod = devm_fwnode_gpiod_get(dev, child, NULL, GPIOD_ASIS, 155 + NULL); 157 156 if (IS_ERR(led.gpiod)) { 158 157 fwnode_handle_put(child); 159 158 return ERR_CAST(led.gpiod);