diff mbox series

[U-Boot,25/39] env: Move env_get_char() to env.h

Message ID 20190728140357.137295-26-sjg@chromium.org
State Superseded
Delegated to: Tom Rini
Headers show
Series env: common: Remove environment definitions from common.h | expand

Commit Message

Simon Glass July 28, 2019, 2:03 p.m. UTC
Move env_get_char() over to the new header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/env.h         | 10 ++++++++++
 include/environment.h | 10 ----------
 2 files changed, 10 insertions(+), 10 deletions(-)

Comments

Joe Hershberger July 30, 2019, 9:21 p.m. UTC | #1
On Sun, Jul 28, 2019 at 9:26 AM Simon Glass <sjg@chromium.org> wrote:
>
> Move env_get_char() over to the new header file.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
diff mbox series

Patch

diff --git a/include/env.h b/include/env.h
index 15a0906847..827d96cc86 100644
--- a/include/env.h
+++ b/include/env.h
@@ -279,4 +279,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
diff --git a/include/environment.h b/include/environment.h
index ef391cc21a..ea45b57628 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -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_ */