From: Simon Glass Date: Thu, 1 Aug 2019 09:47:01 -0600 Subject: [U-Boot] [PATCH v2 26/40] env: Move env_get_char() to env.h In-Reply-To: <20190801154715.225318-1-sjg@chromium.org> References: <20190801154715.225318-1-sjg@chromium.org> Message-ID: <20190801154715.225318-27-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Move env_get_char() over to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None include/env.h | 10 ++++++++++ include/environment.h | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/env.h b/include/env.h index 7204a4bc55..42d8bcfa50 100644 --- a/include/env.h +++ b/include/env.h @@ -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 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_ */ -- 2.22.0.709.g102302147b-goog