]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
env: Move env_get_char() to env.h
authorSimon Glass <sjg@chromium.org>
Thu, 1 Aug 2019 15:47:01 +0000 (09:47 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 11 Aug 2019 20:43:41 +0000 (16:43 -0400)
Move env_get_char() over to the new header file.

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
include/env.h
include/environment.h

index 7204a4bc5503499b1d5d7e5cd9602bac39299508..42d8bcfa5052623c1b8e957be06ccb36b73579fa 100644 (file)
@@ -268,4 +268,14 @@ char *env_get_default(const char *name);
 /* [re]set to the default environment */
 void env_set_default(const char *s, int flags);
 
+/**
+ * env_get_char() - Get a character from the early environment
+ *
+ * This reads from the pre-relocation environment
+ *
+ * @index: Index of character to read (0 = first)
+ * @return character read, or -ve on error
+ */
+int env_get_char(int index);
+
 #endif
index ef391cc21a5f3b4a8440b9ec5a3f3146e71be0eb..ea45b57628278fd12f56fbde0369e11cd53bad21 100644 (file)
@@ -265,16 +265,6 @@ struct env_driver {
 
 extern struct hsearch_data env_htab;
 
-/**
- * env_get_char() - Get a character from the early environment
- *
- * This reads from the pre-relocation environment
- *
- * @index: Index of character to read (0 = first)
- * @return character read, or -ve on error
- */
-int env_get_char(int index);
-
 #endif /* DO_DEPS_ONLY */
 
 #endif /* _ENVIRONMENT_H_ */