diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2020-10-29 07:47:44 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-10-30 16:20:27 +0300 |
commit | 6beaa47d4fe640392f1b7551dcf976fbb676d554 (patch) | |
tree | 39063f9d71402f51981bb44873efad6fb6ee9f6d | |
parent | 3149e524fc1e76ec1420cd17588c724d4232a904 (diff) | |
download | u-boot-6beaa47d4fe640392f1b7551dcf976fbb676d554.tar.xz |
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 <takahiro.akashi@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | drivers/dfu/dfu.c | 2 | ||||
-rw-r--r-- | include/dfu.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index a298c2c439..501a60b344 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -18,7 +18,7 @@ #include <linux/list.h> #include <linux/compiler.h> -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 d3d7e07b60..eaf4bfc0d5 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 |