diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-01 09:46:42 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-11 16:43:41 -0400 |
commit | 3a7d55716d6bfe5122de9692383357344fff2a94 (patch) | |
tree | 9da3c6373e1f03e9d83aae9e68c4eac0afbdd173 /include | |
parent | f1f0ae6a9ce7f4bd148daac233a70a065623d3dd (diff) | |
download | u-boot-3a7d55716d6bfe5122de9692383357344fff2a94.tar.gz |
env: Move env_get_f() to env.h
Move this function 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 | 12 | ||||
-rw-r--r-- | include/env.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/common.h b/include/common.h index 997da857b2..2aabd267b9 100644 --- a/include/common.h +++ b/include/common.h @@ -163,18 +163,6 @@ int envmatch (uchar *, int); char *env_get(const char *varname); /** - * 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 - * loaded yet (GD_FLG_ENV_READY flag is 0). Some environment locations will - * support reading the value (slowly) and some will not. - * - * @varname: Variable to look up - * @return value of variable, or NULL if not found - */ -int env_get_f(const char *name, char *buf, unsigned len); - -/** * env_get_ulong() - Return an environment variable as an integer value * * Most U-Boot environment variables store hex values. For those which store diff --git a/include/env.h b/include/env.h index b82d80de17..19b559abf1 100644 --- a/include/env.h +++ b/include/env.h @@ -22,6 +22,18 @@ int env_get_id(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 + * loaded yet (GD_FLG_ENV_READY flag is 0). Some environment locations will + * support reading the value (slowly) and some will not. + * + * @varname: Variable to look up + * @return value of variable, or NULL if not found + */ +int env_get_f(const char *name, char *buf, unsigned int len); + +/** * env_complete() - return an auto-complete for environment variables * * @var: partial name to auto-complete |