diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-01 18:47:04 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-11 23:43:41 +0300 |
commit | db19701039bc78b5870d74e0d7ecaf4f9e4d8d87 (patch) | |
tree | 12eb809d845ba1933b49b79f2f139553548cb654 /include/env.h | |
parent | be54ec1624fb9a31b3fa30d55662d2c7b0832162 (diff) | |
download | u-boot-db19701039bc78b5870d74e0d7ecaf4f9e4d8d87.tar.xz |
env: Move env_valid to env.h
This enum is somewhat widely used to determine if the environment is valid
or not. Move it to the common environment header file.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/env.h')
-rw-r--r-- | include/env.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/env.h b/include/env.h index 727f58528f..b59c3c36f2 100644 --- a/include/env.h +++ b/include/env.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0+ */ /* - * Common environment functions + * Common environment functions and definitions * * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -14,6 +14,13 @@ struct environment_s; +/* Value for environment validity */ +enum env_valid { + ENV_INVALID, /* No valid environment */ + ENV_VALID, /* First or only environment is valid */ + ENV_REDUND, /* Redundant environment is valid */ +}; + /** * env_get_id() - Gets a sequence number for the environment * |