aboutsummaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:46:46 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commitc7694dd4837ba12db3bcda872a1047a44566e0e8 (patch)
tree342d485e989590d44bbd921a77bb0e5452c041c0 /include/common.h
parentb9ca02c2d554cb46a4579e1382561c529820b494 (diff)
downloadu-boot-c7694dd4837ba12db3bcda872a1047a44566e0e8.zip
u-boot-c7694dd4837ba12db3bcda872a1047a44566e0e8.tar.gz
u-boot-c7694dd4837ba12db3bcda872a1047a44566e0e8.tar.bz2
env: Move env_set_hex() to env.h
Move env_set_hex() over to the new header file along with env_set_addr() which uses it. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/common.h b/include/common.h
index 26ec18d..100eac6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -209,27 +209,6 @@ int env_set(const char *varname, const char *value);
*/
int env_set_ulong(const char *varname, ulong value);
-/**
- * env_set_hex() - set an environment variable to a hex value
- *
- * @varname: Variable to adjust
- * @value: Value to set for the variable (will be converted to a hex string)
- * @return 0 if OK, 1 on error
- */
-int env_set_hex(const char *varname, ulong value);
-
-/**
- * env_set_addr - Set an environment variable to an address in hex
- *
- * @varname: Environment variable to set
- * @addr: Value to set it to
- * @return 0 if ok, 1 on error
- */
-static inline int env_set_addr(const char *varname, const void *addr)
-{
- return env_set_hex(varname, (ulong)addr);
-}
-
void pci_init_board(void);
/* common/exports.c */