env: Move env_get_hex() to env.h

Move env_get_hex() over to the new header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c
index 230b38e..6a6258a 100644
--- a/arch/x86/lib/zimage.c
+++ b/arch/x86/lib/zimage.c
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <malloc.h>
 #include <asm/acpi_table.h>
 #include <asm/io.h>
diff --git a/cmd/elf.c b/cmd/elf.c
index d883be4..5e5cf47 100644
--- a/cmd/elf.c
+++ b/cmd/elf.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <command.h>
 #include <elf.h>
+#include <env.h>
 #include <environment.h>
 #include <net.h>
 #include <vxworks.h>
diff --git a/common/image-fdt.c b/common/image-fdt.c
index e70da3d..4247dce 100644
--- a/common/image-fdt.c
+++ b/common/image-fdt.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <fdtdec.h>
+#include <env.h>
 #include <errno.h>
 #include <image.h>
 #include <linux/libfdt.h>
diff --git a/include/common.h b/include/common.h
index 8305007..8d8bbc4 100644
--- a/include/common.h
+++ b/include/common.h
@@ -158,18 +158,6 @@
 char *env_get(const char *varname);
 
 /**
- * env_get_hex() - Return an environment variable as a hex value
- *
- * Decode an environment as a hex number (it may or may not have a 0x
- * prefix). If the environment variable cannot be found, or does not start
- * with hex digits, the default value is returned.
- *
- * @varname:		Variable to decode
- * @default_val:	Value to return on error
- */
-ulong env_get_hex(const char *varname, ulong default_val);
-
-/**
  * env_set() - set an environment variable
  *
  * This sets or deletes the value of an environment variable. For setting the
diff --git a/include/env.h b/include/env.h
index d7190da..dd063fe 100644
--- a/include/env.h
+++ b/include/env.h
@@ -94,6 +94,18 @@
 int env_set_ulong(const char *varname, ulong value);
 
 /**
+ * env_get_hex() - Return an environment variable as a hex value
+ *
+ * Decode an environment as a hex number (it may or may not have a 0x
+ * prefix). If the environment variable cannot be found, or does not start
+ * with hex digits, the default value is returned.
+ *
+ * @varname:		Variable to decode
+ * @default_val:	Value to return on error
+ */
+ulong env_get_hex(const char *varname, ulong default_val);
+
+/**
  * env_set_hex() - set an environment variable to a hex value
  *
  * @varname: Variable to adjust