This list will be used by the upcoming bfetch command to determine whether the running barebox has a feature controller driver bound.
Signed-off-by: Ahmad Fatoum <a.fat...@barebox.org> --- drivers/base/featctrl.c | 2 +- include/featctrl.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/base/featctrl.c b/drivers/base/featctrl.c index 153720e5ee6b..8ae432f1d6da 100644 --- a/drivers/base/featctrl.c +++ b/drivers/base/featctrl.c @@ -11,7 +11,7 @@ #include <featctrl.h> /* List of registered feature controllers */ -static LIST_HEAD(of_feature_controllers); +LIST_HEAD(of_feature_controllers); /** * feature_controller_register() - Register a feature controller diff --git a/include/featctrl.h b/include/featctrl.h index 6f99c96b8aec..c24b12515d7a 100644 --- a/include/featctrl.h +++ b/include/featctrl.h @@ -15,6 +15,8 @@ struct feature_controller { enum { FEATCTRL_GATED = 0, FEATCTRL_OKAY = 1 }; +extern struct list_head of_feature_controllers; + int feature_controller_register(struct feature_controller *); #ifdef CONFIG_FEATURE_CONTROLLER -- 2.39.5