aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2017-02-02 08:53:10 -0500
committerLinus Walleij <linus.walleij@linaro.org>2017-02-04 15:27:26 -0500
commit4b0947974e593d52aace18ca5c7e2746fdebae60 (patch)
tree8fea4e117452c3809d8b7224695e1b02c1ded04f /include/linux/gpio
parentb2987d7438e0ca949d81774ca8b43d370a1f9947 (diff)
gpio: Rename devm_get_gpiod_from_child()
Rename devm_get_gpiod_from_child() into devm_fwnode_get_gpiod_from_child() to reflect the fact that this function is operating on a fwnode object. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/consumer.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h
index 80bad7ebde04..f32f49e96c0b 100644
--- a/include/linux/gpio/consumer.h
+++ b/include/linux/gpio/consumer.h
@@ -138,11 +138,11 @@ struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode,
138 const char *propname, 138 const char *propname,
139 enum gpiod_flags dflags, 139 enum gpiod_flags dflags,
140 const char *label); 140 const char *label);
141struct gpio_desc *devm_get_gpiod_from_child(struct device *dev, 141struct gpio_desc *devm_fwnode_get_gpiod_from_child(struct device *dev,
142 const char *con_id, 142 const char *con_id,
143 struct fwnode_handle *child, 143 struct fwnode_handle *child,
144 enum gpiod_flags flags, 144 enum gpiod_flags flags,
145 const char *label); 145 const char *label);
146#else /* CONFIG_GPIOLIB */ 146#else /* CONFIG_GPIOLIB */
147 147
148static inline int gpiod_count(struct device *dev, const char *con_id) 148static inline int gpiod_count(struct device *dev, const char *con_id)
@@ -425,11 +425,11 @@ struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode,
425} 425}
426 426
427static inline 427static inline
428struct gpio_desc *devm_get_gpiod_from_child(struct device *dev, 428struct gpio_desc *devm_fwnode_get_gpiod_from_child(struct device *dev,
429 const char *con_id, 429 const char *con_id,
430 struct fwnode_handle *child, 430 struct fwnode_handle *child,
431 enum gpiod_flags flags, 431 enum gpiod_flags flags,
432 const char *label) 432 const char *label)
433{ 433{
434 return ERR_PTR(-ENOSYS); 434 return ERR_PTR(-ENOSYS);
435} 435}