summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-swnode.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpiolib-swnode.h')
-rw-r--r--drivers/gpio/gpiolib-swnode.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib-swnode.h b/drivers/gpio/gpiolib-swnode.h
new file mode 100644
index 0000000000..af849e56f6
--- /dev/null
+++ b/drivers/gpio/gpiolib-swnode.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef GPIOLIB_SWNODE_H
+#define GPIOLIB_SWNODE_H
+
+struct fwnode_handle;
+struct gpio_desc;
+
+struct gpio_desc *swnode_find_gpio(struct fwnode_handle *fwnode,
+ const char *con_id, unsigned int idx,
+ unsigned long *flags);
+int swnode_gpio_count(const struct fwnode_handle *fwnode, const char *con_id);
+
+#endif /* GPIOLIB_SWNODE_H */