env: Move env_set_ulong() to env.h
authorSimon Glass <sjg@chromium.org>
Thu, 1 Aug 2019 15:46:47 +0000 (09:46 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 11 Aug 2019 20:43:41 +0000 (16:43 -0400)
Move env_set_ulong() over to the new header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
16 files changed:
arch/arm/mach-uniphier/mmc-first-dev.c
board/BuR/brppt1/board.c
board/BuR/common/br_resetc.c
board/CZ.NIC/turris_omnia/turris_omnia.c
board/engicam/common/board.c
board/gdsys/mpc8308/gazerbeam.c
board/grinn/liteboard/board.c
board/imgtec/ci20/ci20.c
board/synopsys/hsdk/hsdk.c
board/warp7/warp7.c
cmd/tpm-common.c
drivers/bootcount/bootcount_env.c
drivers/scsi/scsi.c
include/bootcount.h
include/common.h
include/env.h

index 2f1c109b9e2c18696f796856b80ad1e8fb45cbf2..149e662070ff4402a2339f74213e91926acde522 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <mmc.h>
 #include <linux/errno.h>
 
index b8ab19c0e712d51149ce4d10debda382ff32a8ed..ef4f5c950140636e450ca92d5a7a8565024f1a30 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <errno.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
index c8cc73ab1417167499c7be1f4ece82e618efbe72..c0e7fb65b298facd00b7a1dd753083a792cdaea5 100644 (file)
@@ -6,6 +6,7 @@
  * B&R Industrial Automation GmbH - http://www.br-automation.com/ *
  */
 #include <common.h>
+#include <env.h>
 #include <errno.h>
 #include <i2c.h>
 #include <dm/uclass.h>
index 5f6ea35e5f681e14a749e052ea9608680b36eb29..418657c2d572514f49ea7c9ce400a261d8d5e422 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <environment.h>
 #include <i2c.h>
 #include <miiphy.h>
index 567b9f63e5969df788e19fff0f943ebe9028ed79..0c47afe5b566074f028d4b968cc76a805197594d 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <mmc.h>
 #include <asm/arch/sys_proto.h>
 #include <watchdog.h>
index cd621744d28c94e548b5237ebc497f3d7b83566d..ddd6ee8953848a8f9b696331e83ba1c0b2d25f16 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <board.h>
 #include <dm.h>
+#include <env.h>
 #include <fdt_support.h>
 #include <fsl_esdhc.h>
 #include <miiphy.h>
index 1491b8c3d4bd3898e4345573a72ed668e64882ca..1558ea4b84f537d19b0fd6dbcb000bf1e568eac9 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/io.h>
 #include <common.h>
+#include <env.h>
 #include <fsl_esdhc_imx.h>
 #include <linux/sizes.h>
 #include <linux/fb.h>
index 9811ef559fc2016cd8cccea609de9fddbcb87b9c..f72a660581cccb9ec168dc9e961f7ea40d334a4a 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <environment.h>
 #include <net.h>
 #include <netdev.h>
index ac4d980c49f40620a1222d04474be6dcec143f2e..8a7642a0aaaa55e80732c138b4f6b5b8a9853d67 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <config.h>
+#include <env.h>
 #include <linux/printk.h>
 #include <linux/kernel.h>
 #include <linux/io.h>
index 134a6c99d747639df07e52f27fcef4fdcbdf2fbb..39ae9822573829c59a8dd5f93dfdd4360abb90fb 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/io.h>
 #include <common.h>
+#include <env.h>
 #include <asm/arch/crm_regs.h>
 #include <netdev.h>
 #include <power/pmic.h>
index 89f2aa001baf23a61f143ebed743b322e5ab718d..38900fb1590bbfc2bee376961f7e89dffd1a51c9 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <env.h>
 #include <asm/unaligned.h>
 #include <linux/string.h>
 #include <tpm-common.h>
index 9084ca8a6e82665c1b944f95a19012a7aeeb0163..50e0857b3bf26f102c3087b37065acaf7ec2597a 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <environment.h>
 
 void bootcount_store(ulong a)
index 75900d822832ac37883327824a619b2917be5183..48cb2a2818bc8dff58b864db86fabcbbf88a548d 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
 #include <pci.h>
 #include <scsi.h>
 #include <dm/device-internal.h>
index daee84316c7f5f7594f6eceace9d06225c4bbd89..8fa8cf82181a6b1a20b7a377f839e93689273fdd 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
+#include <env.h>
 
 #ifdef CONFIG_DM_BOOTCOUNT
 
index 100eac6e5e97ff7621a93ddf424329ef91936386..283cb23fd1134ff4705f55077d5563e240103c46 100644 (file)
@@ -200,15 +200,6 @@ int env_get_yesno(const char *var);
  */
 int env_set(const char *varname, const char *value);
 
-/**
- * env_set_ulong() - set an environment variable to an integer
- *
- * @varname: Variable to adjust
- * @value: Value to set for the variable (will be converted to a string)
- * @return 0 if OK, 1 on error
- */
-int env_set_ulong(const char *varname, ulong value);
-
 void   pci_init_board(void);
 
 /* common/exports.c */
index 5c780f30d619b729053f1d1e50079fa3533b7845..8898b78b8e4788474ade90031ee3842fed80a2dd 100644 (file)
@@ -63,6 +63,15 @@ int env_match(unsigned char *name, int index);
  */
 int env_get_f(const char *name, char *buf, unsigned int len);
 
+/**
+ * env_set_ulong() - set an environment variable to an integer
+ *
+ * @varname: Variable to adjust
+ * @value: Value to set for the variable (will be converted to a string)
+ * @return 0 if OK, 1 on error
+ */
+int env_set_ulong(const char *varname, ulong value);
+
 /**
  * env_set_hex() - set an environment variable to a hex value
  *