summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-03 12:22:08 -0600
committerTom Rini <trini@konsulko.com>2017-08-15 20:50:30 -0400
commit01510091de905c46620757b9027b2e55c4b3b313 (patch)
tree6c4a3bfa6f7f35c37bd0bfe6f286218461e09577 /include
parent310fb14b2631b2175efe9b0e56d0f1630ad02d91 (diff)
env: Drop saveenv() in favour of env_save()
Use the env_save() function directly now that there is only one implementation of saveenv(). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Denk <wd@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h1
-rw-r--r--include/environment.h7
2 files changed, 7 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index c8fb277cde..030c179fba 100644
--- a/include/common.h
+++ b/include/common.h
@@ -336,7 +336,6 @@ ulong getenv_hex(const char *varname, ulong default_val);
* Return -1 if variable does not exist (default to true)
*/
int getenv_yesno(const char *var);
-int saveenv (void);
int setenv (const char *, const char *);
int setenv_ulong(const char *varname, ulong value);
int setenv_hex(const char *varname, ulong value);
diff --git a/include/environment.h b/include/environment.h
index b4f93663da..a055e3fa89 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -325,6 +325,13 @@ int env_get_char(int index);
*/
int env_load(void);
+/**
+ * env_save() - Save the environment to storage
+ *
+ * @return 0 if OK, -ve on error
+ */
+int env_save(void);
+
#endif /* DO_DEPS_ONLY */
#endif /* _ENVIRONMENT_H_ */