From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl0-x236.google.com ([2607:f8b0:400e:c01::236]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVijT-0001Pp-AB for barebox@lists.infradead.org; Wed, 20 Jun 2018 19:25:38 +0000 Received: by mail-pl0-x236.google.com with SMTP id k1-v6so308959plt.2 for ; Wed, 20 Jun 2018 12:25:19 -0700 (PDT) From: Andrey Smirnov Date: Wed, 20 Jun 2018 12:24:28 -0700 Message-Id: <20180620192430.16689-3-andrew.smirnov@gmail.com> In-Reply-To: <20180620192430.16689-1-andrew.smirnov@gmail.com> References: <20180620192430.16689-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 2/4] bbu: Make bbu_find_handler_by_device() public To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- 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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox