This list will be used by the upcoming bfetch command to
determine whether the running barebox has pinctrl devices bound.

Signed-off-by: Ahmad Fatoum <a.fat...@barebox.org>
---
 drivers/pinctrl/pinctrl.c        | 2 +-
 include/linux/pinctrl/consumer.h | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl.c b/drivers/pinctrl/pinctrl.c
index dd0ed156ec9e..106a4423184c 100644
--- a/drivers/pinctrl/pinctrl.c
+++ b/drivers/pinctrl/pinctrl.c
@@ -18,7 +18,7 @@ struct pinctrl_state {
        struct property prop;
 };
 
-static LIST_HEAD(pinctrl_list);
+LIST_HEAD(pinctrl_list);
 
 static struct pinctrl_device *pin_to_pinctrl(unsigned int pin)
 {
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
index c13f9822ab1a..3c99e9d189f2 100644
--- a/include/linux/pinctrl/consumer.h
+++ b/include/linux/pinctrl/consumer.h
@@ -4,6 +4,7 @@
 
 #include <linux/errno.h>
 #include <linux/err.h>
+#include <linux/list.h>
 #include <device.h>
 
 struct device;
@@ -11,6 +12,8 @@ struct device_node;
 
 struct pinctrl;
 
+extern struct list_head pinctrl_list;
+
 #ifdef CONFIG_PINCTRL
 struct pinctrl_state *pinctrl_lookup_state(struct pinctrl *pinctrl,
                                           const char *name);
-- 
2.39.5


Reply via email to