summaryrefslogtreecommitdiff
path: root/include/search.h
diff options
context:
space:
mode:
authorGerlando Falauto <gerlando.falauto@keymile.com>2012-08-24 00:11:37 +0000
committerTom Rini <trini@ti.com>2012-09-18 12:01:52 -0700
commitc3f6525854bbc664ce9fbed9754af1daf56ba08e (patch)
treeb9d8544f12bcaa9b1014830b0ed9b82b632e85fd /include/search.h
parentc2ba2ff51101cdcfabdc0bdc961e37cc51cb7d23 (diff)
downloadu-boot-imx-c3f6525854bbc664ce9fbed9754af1daf56ba08e.zip
u-boot-imx-c3f6525854bbc664ce9fbed9754af1daf56ba08e.tar.gz
u-boot-imx-c3f6525854bbc664ce9fbed9754af1daf56ba08e.tar.bz2
env: unify logic to check and apply changes
The logic of checking special parameters (e.g. baudrate, stdin, stdout, for a valid value and/or whether can be overwritten) and applying the new value to the running system is now all within a single function env_check_apply() which can be called whenever changes are made to the environment, no matter if by set, default or import. With this patch env_check_apply() is only called by "env set", retaining previous behavior. Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/search.h b/include/search.h
index ef53edb..a4a5ef4 100644
--- a/include/search.h
+++ b/include/search.h
@@ -99,6 +99,7 @@ extern int himport_r(struct hsearch_data *__htab,
int __flag);
/* Flags for himport_r() */
-#define H_NOCLEAR 1 /* do not clear hash table before importing */
+#define H_NOCLEAR (1 << 0) /* do not clear hash table before importing */
+#define H_FORCE (1 << 1) /* overwrite read-only/write-once variables */
#endif /* search.h */