diff options
| author | Simon Glass <[email protected]> | 2019-08-01 09:46:43 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-08-11 16:43:41 -0400 |
| commit | 4bfd1f5d626778dd17f9827e5c462cc2697e0e90 (patch) | |
| tree | 330bf6736371dbc158c9d4be7767df526ed8c4cf /include/env.h | |
| parent | 3a7d55716d6bfe5122de9692383357344fff2a94 (diff) | |
env: Move env_init() to env.h
Move env_init() over to the new header file.
Signed-off-by: Simon Glass <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'include/env.h')
| -rw-r--r-- | include/env.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h index 19b559abf15..5d205ef02d9 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 |
