Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- common/bbu.c | 2 +- include/bbu.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/bbu.c b/common/bbu.c index 11e44f4a7..d9b0c7ece 100644 --- a/common/bbu.c +++ b/common/bbu.c @@ -117,7 +117,7 @@ static struct bbu_handler *bbu_find_handler(const char *name) return NULL; } -static struct bbu_handler *bbu_find_handler_by_device(const char *devicepath) +struct bbu_handler *bbu_find_handler_by_device(const char *devicepath) { struct bbu_handler *handler; diff --git a/include/bbu.h b/include/bbu.h index def568e49..b6e7410db 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -44,6 +44,8 @@ void bbu_handlers_list(void); int bbu_handlers_iterate(int (*fn)(struct bbu_handler *, void *), void *); +struct bbu_handler *bbu_find_handler_by_device(const char *devicepath); + #ifdef CONFIG_BAREBOX_UPDATE int bbu_register_handler(struct bbu_handler *); -- 2.17.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox