1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

env: Move get/set_default_env() to env.h

Move these functions to the new header file and rename set_default_env()
to env_set_default() so that it has a consistent env_ prefix.

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2019-08-01 09:47:00 -06:00
committed by Tom Rini
parent 1f3db0c135
commit 0ac7d722ed
15 changed files with 46 additions and 34 deletions

5
env/mmc.c vendored
View File

@@ -8,6 +8,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <environment.h>
#include <fdtdec.h>
#include <linux/stddef.h>
@@ -346,7 +347,7 @@ fini:
fini_mmc_for_env(mmc);
err:
if (ret)
set_default_env(errmsg, 0);
env_set_default(errmsg, 0);
#endif
return ret;
@@ -387,7 +388,7 @@ fini:
fini_mmc_for_env(mmc);
err:
if (ret)
set_default_env(errmsg, 0);
env_set_default(errmsg, 0);
#endif
return ret;
}