1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Simon Glass
2019-08-01 09:46:43 -06:00
committed by Tom Rini
parent 3a7d55716d
commit 4bfd1f5d62
19 changed files with 27 additions and 1 deletions

View File

@@ -21,6 +21,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)
*