linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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 2/3] leds: lgm-sso: switch to using devm_fwnode_gpiod_get()
Date: Fri,  2 Sep 2022 17:55:26 -0700	[thread overview]
Message-ID: <20220902-get_gpiod_from_child-remove-v1-2-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/blink/leds-lgm-sso.c b/drivers/leds/blink/leds-lgm-sso.c
index 6f270c0272fb..35c61311e7fd 100644
--- a/drivers/leds/blink/leds-lgm-sso.c
+++ b/drivers/leds/blink/leds-lgm-sso.c
@@ -635,9 +635,8 @@ __sso_led_dt_parse(struct sso_led_priv *priv, struct fwnode_handle *fw_ssoled)
 		led->priv = priv;
 		desc = &led->desc;
 
-		led->gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL,
-							      fwnode_child,
-							      GPIOD_ASIS, NULL);
+		led->gpiod = devm_fwnode_gpiod_get(dev, fwnode_child, NULL,
+						   GPIOD_ASIS, NULL);
 		if (IS_ERR(led->gpiod)) {
 			ret = dev_err_probe(dev, PTR_ERR(led->gpiod), "led: get gpio fail!\n");
 			goto __dt_err;

-- 
b4 0.10.0-dev-fc921

  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 ` [PATCH v1 1/3] leds: gpio: switch to using devm_fwnode_gpiod_get() Dmitry Torokhov
2022-09-03  0:55 ` Dmitry Torokhov [this message]
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-2-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).