xref: /linux/drivers/gpio/gpiolib-swnode.h (revision 498e2f7a6e69dcbca24715de2b4b97569fdfeff4)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef GPIOLIB_SWNODE_H
4 #define GPIOLIB_SWNODE_H
5 
6 struct fwnode_handle;
7 struct gpio_desc;
8 
9 struct gpio_desc *swnode_find_gpio(struct fwnode_handle *fwnode,
10 				   const char *con_id, unsigned int idx,
11 				   unsigned long *flags);
12 int swnode_gpio_count(const struct fwnode_handle *fwnode, const char *con_id);
13 
14 #endif /* GPIOLIB_SWNODE_H */
15