diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-01 18:47:00 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-11 23:43:41 +0300 |
commit | 0ac7d722ede8e64973f68dbcd07b9521ba04cb63 (patch) | |
tree | 179942d65436fafe8d1c3193bd15913f3b2c5f18 /env/ubi.c | |
parent | 1f3db0c135fcaf40ff88bdcd058b56bc7e1f58f3 (diff) | |
download | u-boot-0ac7d722ede8e64973f68dbcd07b9521ba04cb63.tar.xz |
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>
Diffstat (limited to 'env/ubi.c')
-rw-r--r-- | env/ubi.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -7,6 +7,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <malloc.h> @@ -123,7 +124,7 @@ static int env_ubi_load(void) if (ubi_part(CONFIG_ENV_UBI_PART, UBI_VID_OFFSET)) { printf("\n** Cannot find mtd partition \"%s\"\n", CONFIG_ENV_UBI_PART); - set_default_env(NULL, 0); + env_set_default(NULL, 0); return -EIO; } @@ -160,14 +161,14 @@ static int env_ubi_load(void) if (ubi_part(CONFIG_ENV_UBI_PART, UBI_VID_OFFSET)) { printf("\n** Cannot find mtd partition \"%s\"\n", CONFIG_ENV_UBI_PART); - set_default_env(NULL, 0); + env_set_default(NULL, 0); return -EIO; } if (ubi_volume_read(CONFIG_ENV_UBI_VOLUME, buf, CONFIG_ENV_SIZE)) { printf("\n** Unable to read env from %s:%s **\n", CONFIG_ENV_UBI_PART, CONFIG_ENV_UBI_VOLUME); - set_default_env(NULL, 0); + env_set_default(NULL, 0); return -EIO; } |