diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-01 09:46:43 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-11 16:43:41 -0400 |
commit | 4bfd1f5d626778dd17f9827e5c462cc2697e0e90 (patch) | |
tree | 330bf6736371dbc158c9d4be7767df526ed8c4cf /include | |
parent | 3a7d55716d6bfe5122de9692383357344fff2a94 (diff) |
env: Move env_init() to env.h
Move env_init() over to the new header file.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 1 | ||||
-rw-r--r-- | include/env.h | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index 2aabd267b9..55cbe1f97d 100644 --- a/include/common.h +++ b/include/common.h @@ -146,7 +146,6 @@ int do_fat_fsload(cmd_tbl_t *, int, int, char * const []); int do_ext2load(cmd_tbl_t *, int, int, char * const []); /* common/cmd_nvedit.c */ -int env_init (void); void env_relocate (void); int envmatch (uchar *, int); diff --git a/include/env.h b/include/env.h index 19b559abf1..5d205ef02d 100644 --- a/include/env.h +++ b/include/env.h @@ -22,6 +22,16 @@ int env_get_id(void); /** + * env_init() - Set up the pre-relocation environment + * + * This locates the environment or uses the default if nothing is available. + * This must be called before env_get() will work. + * + * @return 0 if OK, -ENODEV if no environment drivers are enabled + */ +int env_init(void); + +/** * env_get_f() - Look up the value of an environment variable (early) * * This function is called from env_get() if the environment has not been |