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 3/3] gpiolib: remove devm_fwnode_get_[index_]gpiod_from_child()
Date: Fri,  2 Sep 2022 17:55:27 -0700	[thread overview]
Message-ID: <20220902-get_gpiod_from_child-remove-v1-3-1e47125df20f@gmail.com> (raw)
In-Reply-To: <20220902-get_gpiod_from_child-remove-v1-0-1e47125df20f@gmail.com>

Now that there are no more users of these APIs in the kernel we can
remove them.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h
index fe0f460d9a3b..2ccda8567533 100644
--- a/include/linux/gpio/consumer.h
+++ b/include/linux/gpio/consumer.h
@@ -594,27 +594,6 @@ struct gpio_desc *devm_fwnode_gpiod_get(struct device *dev,
 					   flags, label);
 }
 
-static inline
-struct gpio_desc *devm_fwnode_get_index_gpiod_from_child(struct device *dev,
-						const char *con_id, int index,
-						struct fwnode_handle *child,
-						enum gpiod_flags flags,
-						const char *label)
-{
-	return devm_fwnode_gpiod_get_index(dev, child, con_id, index,
-					   flags, label);
-}
-
-static inline
-struct gpio_desc *devm_fwnode_get_gpiod_from_child(struct device *dev,
-						   const char *con_id,
-						   struct fwnode_handle *child,
-						   enum gpiod_flags flags,
-						   const char *label)
-{
-	return devm_fwnode_gpiod_get_index(dev, child, con_id, 0, flags, label);
-}
-
 #if IS_ENABLED(CONFIG_GPIOLIB) && IS_ENABLED(CONFIG_OF_GPIO)
 struct device_node;
 

-- 
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 ` [PATCH v1 2/3] leds: lgm-sso: " Dmitry Torokhov
2022-09-03  0:55 ` Dmitry Torokhov [this message]
2022-09-04 20:14   ` [PATCH v1 3/3] gpiolib: remove devm_fwnode_get_[index_]gpiod_from_child() 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-3-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).