From: AKASHI Takahiro Date: Thu, 29 Oct 2020 04:47:44 +0000 (+0900) Subject: dfu: export dfu_list X-Git-Tag: v2021.10~449^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6beaa47d4fe640392f1b7551dcf976fbb676d554;p=platform%2Fkernel%2Fu-boot.git dfu: export dfu_list This variable will be utilized to enumerate all dfu entities for UEFI capsule firmware update in a later commit. Signed-off-by: AKASHI Takahiro Reviewed-by: Tom Rini --- diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index a298c2c..501a60b 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -18,7 +18,7 @@ #include #include -static LIST_HEAD(dfu_list); +LIST_HEAD(dfu_list); static int dfu_alt_num; static int alt_num_cnt; static struct hash_algo *dfu_hash_algo; diff --git a/include/dfu.h b/include/dfu.h index d3d7e07..eaf4bfc 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -158,6 +158,9 @@ struct dfu_entity { unsigned int inited:1; }; +struct list_head; +extern struct list_head dfu_list; + #ifdef CONFIG_SET_DFU_ALT_INFO /** * set_dfu_alt_info() - set dfu_alt_info environment variable