env: Move env_load/save functions to env.h
Move these function to the new header file.
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/include/env.h b/include/env.h
index fc3519f..69ccfb7 100644
--- a/include/env.h
+++ b/include/env.h
@@ -198,4 +198,25 @@
*/
int env_set_default_vars(int nvars, char *const vars[], int flags);
+/**
+ * env_load() - Load the environment from storage
+ *
+ * @return 0 if OK, -ve on error
+ */
+int env_load(void);
+
+/**
+ * env_save() - Save the environment to storage
+ *
+ * @return 0 if OK, -ve on error
+ */
+int env_save(void);
+
+/**
+ * env_erase() - Erase the environment on storage
+ *
+ * @return 0 if OK, -ve on error
+ */
+int env_erase(void);
+
#endif
diff --git a/include/environment.h b/include/environment.h
index 97d4886..b921b8f 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -296,27 +296,6 @@
*/
int env_get_char(int index);
-/**
- * env_load() - Load the environment from storage
- *
- * @return 0 if OK, -ve on error
- */
-int env_load(void);
-
-/**
- * env_save() - Save the environment to storage
- *
- * @return 0 if OK, -ve on error
- */
-int env_save(void);
-
-/**
- * env_erase() - Erase the environment on storage
- *
- * @return 0 if OK, -ve on error
- */
-int env_erase(void);
-
#endif /* DO_DEPS_ONLY */
#endif /* _ENVIRONMENT_H_ */