summaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:47:08 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commitd3716dd64bb8bb4c4ba2d19bac164d24ada72a68 (patch)
tree0813ae10d149c97f5dedb88624366dff087dcd05 /include/env.h
parent25e51e90feec10b7d534b123cd9c4ed7a3a2dc1a (diff)
downloadu-boot-d3716dd64bb8bb4c4ba2d19bac164d24ada72a68.tar.gz
u-boot-d3716dd64bb8bb4c4ba2d19bac164d24ada72a68.tar.bz2
u-boot-d3716dd64bb8bb4c4ba2d19bac164d24ada72a68.zip
env: Rename the redundancy flags
Add an ENV prefix to these two flags so that it is clear what they relate to. Also move them to env.h since they are part of the public API. Use an enum rather than a #define to tie them together. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h
index 271cb3e888..a74a261337 100644
--- a/include/env.h
+++ b/include/env.h
@@ -55,6 +55,12 @@ struct env_clbk_tbl {
{#name, callback}
#endif
+/** enum env_redund_flags - Flags for the redundand_environment */
+enum env_redund_flags {
+ ENV_REDUND_OBSOLETE = 0,
+ ENV_REDUND_ACTIVE = 1,
+};
+
/**
* env_get_id() - Gets a sequence number for the environment
*