summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2022-09-02 17:55:27 -0700
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2022-11-09 13:59:32 +0100
commit2fe8e1dcf937272c5425e69947819894fcf077a6 (patch)
treee6452f7dca766df3f0cc2918aa67f84bf287f44d /include
parent17521f263fc0ee2c202d5a762679c0ff0cf24b80 (diff)
downloadlinux-stable-2fe8e1dcf937272c5425e69947819894fcf077a6.tar.gz
linux-stable-2fe8e1dcf937272c5425e69947819894fcf077a6.tar.bz2
linux-stable-2fe8e1dcf937272c5425e69947819894fcf077a6.zip
gpiolib: remove devm_fwnode_get_[index_]gpiod_from_child()
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> 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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/gpio/consumer.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h
index 36460ced060b..45da8f137fe5 100644
--- a/include/linux/gpio/consumer.h
+++ b/include/linux/gpio/consumer.h
@@ -581,27 +581,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;