From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Pavel Machek <pavel@ucw.cz>, Bartosz Golaszewski <brgl@bgdev.pl>
Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org
Subject: [PATCH v1 1/3] leds: gpio: switch to using devm_fwnode_gpiod_get()
Date: Fri, 2 Sep 2022 17:55:25 -0700 [thread overview]
Message-ID: <20220902-get_gpiod_from_child-remove-v1-1-1e47125df20f@gmail.com> (raw)
In-Reply-To: <20220902-get_gpiod_from_child-remove-v1-0-1e47125df20f@gmail.com>
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>
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 092eb59a7d32..ce4e79939731 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -151,9 +151,8 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev)
* will be updated after LED class device is registered,
* Only then the final LED name is known.
*/
- led.gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL, child,
- GPIOD_ASIS,
- NULL);
+ led.gpiod = devm_fwnode_gpiod_get(dev, child, NULL, GPIOD_ASIS,
+ NULL);
if (IS_ERR(led.gpiod)) {
fwnode_handle_put(child);
return ERR_CAST(led.gpiod);
--
b4 0.10.0-dev-fc921
next prev parent reply other threads:[~2022-09-03 0:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-03 0:55 [PATCH v1 0/3] Get rid of devm_fwnode_get_[index_]gpiod_from_child() Dmitry Torokhov
2022-09-03 0:55 ` Dmitry Torokhov [this message]
2022-09-03 0:55 ` [PATCH v1 2/3] leds: lgm-sso: switch to using devm_fwnode_gpiod_get() Dmitry Torokhov
2022-09-03 0:55 ` [PATCH v1 3/3] gpiolib: remove devm_fwnode_get_[index_]gpiod_from_child() Dmitry Torokhov
2022-09-04 20:14 ` Bartosz Golaszewski
2022-09-03 9:59 ` [PATCH v1 0/3] Get rid of devm_fwnode_get_[index_]gpiod_from_child() Andy Shevchenko
2022-09-03 12:26 ` Linus Walleij
2022-09-22 21:48 ` Dmitry Torokhov
2022-10-24 12:18 ` Dmitry Torokhov
2022-10-25 15:48 ` Bartosz Golaszewski
2022-11-08 4:52 ` Dmitry Torokhov
2022-11-08 10:53 ` Linus Walleij
2022-11-09 13:00 ` Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220902-get_gpiod_from_child-remove-v1-1-1e47125df20f@gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=brgl@bgdev.pl \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).