From: Dmitry Torokhov Date: Sat, 3 Sep 2022 00:55:27 +0000 (-0700) Subject: gpiolib: remove devm_fwnode_get_[index_]gpiod_from_child() X-Git-Tag: v6.6.7~3894^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fe8e1dcf937272c5425e69947819894fcf077a6;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Andy Shevchenko Reviewed-by: Linus Walleij Signed-off-by: Bartosz Golaszewski --- diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h index 36460ce..45da8f1 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;