aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/gpio/consumer.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h
index fb0fde686cb1..930d10049d8d 100644
--- a/include/linux/gpio/consumer.h
+++ b/include/linux/gpio/consumer.h
@@ -135,10 +135,12 @@ int desc_to_gpio(const struct gpio_desc *desc);
135struct fwnode_handle; 135struct fwnode_handle;
136 136
137struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode, 137struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode,
138 const char *propname); 138 const char *propname,
139 enum gpiod_flags dflags);
139struct gpio_desc *devm_get_gpiod_from_child(struct device *dev, 140struct gpio_desc *devm_get_gpiod_from_child(struct device *dev,
140 const char *con_id, 141 const char *con_id,
141 struct fwnode_handle *child); 142 struct fwnode_handle *child,
143 enum gpiod_flags flags);
142#else /* CONFIG_GPIOLIB */ 144#else /* CONFIG_GPIOLIB */
143 145
144static inline int gpiod_count(struct device *dev, const char *con_id) 146static inline int gpiod_count(struct device *dev, const char *con_id)
@@ -411,14 +413,19 @@ static inline int desc_to_gpio(const struct gpio_desc *desc)
411/* Child properties interface */ 413/* Child properties interface */
412struct fwnode_handle; 414struct fwnode_handle;
413 415
414static inline struct gpio_desc *fwnode_get_named_gpiod( 416static inline
415 struct fwnode_handle *fwnode, const char *propname) 417struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode,
418 const char *propname,
419 enum gpiod_flags dflags)
416{ 420{
417 return ERR_PTR(-ENOSYS); 421 return ERR_PTR(-ENOSYS);
418} 422}
419 423
420static inline struct gpio_desc *devm_get_gpiod_from_child( 424static inline
421 struct device *dev, const char *con_id, struct fwnode_handle *child) 425struct gpio_desc *devm_get_gpiod_from_child(struct device *dev,
426 const char *con_id,
427 struct fwnode_handle *child,
428 enum gpiod_flags flags)
422{ 429{
423 return ERR_PTR(-ENOSYS); 430 return ERR_PTR(-ENOSYS);
424} 431}