Commit 168068fb3d7da3d95bf37b21f39347f48d38497f

Authored by Simon Glass
Committed by Tom Rini
1 parent c7694dd483

env: Move env_set_ulong() to env.h

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>

Showing 16 changed files with 23 additions and 9 deletions Side-by-side Diff

arch/arm/mach-uniphier/mmc-first-dev.c
... ... @@ -5,6 +5,7 @@
5 5 */
6 6  
7 7 #include <common.h>
  8 +#include <env.h>
8 9 #include <mmc.h>
9 10 #include <linux/errno.h>
10 11  
board/BuR/brppt1/board.c
... ... @@ -10,6 +10,7 @@
10 10 */
11 11  
12 12 #include <common.h>
  13 +#include <env.h>
13 14 #include <errno.h>
14 15 #include <spl.h>
15 16 #include <asm/arch/cpu.h>
board/BuR/common/br_resetc.c
... ... @@ -6,6 +6,7 @@
6 6 * B&R Industrial Automation GmbH - http://www.br-automation.com/ *
7 7 */
8 8 #include <common.h>
  9 +#include <env.h>
9 10 #include <errno.h>
10 11 #include <i2c.h>
11 12 #include <dm/uclass.h>
board/CZ.NIC/turris_omnia/turris_omnia.c
... ... @@ -8,6 +8,7 @@
8 8 */
9 9  
10 10 #include <common.h>
  11 +#include <env.h>
11 12 #include <environment.h>
12 13 #include <i2c.h>
13 14 #include <miiphy.h>
board/engicam/common/board.c
... ... @@ -6,6 +6,7 @@
6 6 */
7 7  
8 8 #include <common.h>
  9 +#include <env.h>
9 10 #include <mmc.h>
10 11 #include <asm/arch/sys_proto.h>
11 12 #include <watchdog.h>
board/gdsys/mpc8308/gazerbeam.c
... ... @@ -8,6 +8,7 @@
8 8 #include <common.h>
9 9 #include <board.h>
10 10 #include <dm.h>
  11 +#include <env.h>
11 12 #include <fdt_support.h>
12 13 #include <fsl_esdhc.h>
13 14 #include <miiphy.h>
board/grinn/liteboard/board.c
... ... @@ -17,6 +17,7 @@
17 17 #include <asm/mach-imx/boot_mode.h>
18 18 #include <asm/io.h>
19 19 #include <common.h>
  20 +#include <env.h>
20 21 #include <fsl_esdhc_imx.h>
21 22 #include <linux/sizes.h>
22 23 #include <linux/fb.h>
board/imgtec/ci20/ci20.c
... ... @@ -7,6 +7,7 @@
7 7 */
8 8  
9 9 #include <common.h>
  10 +#include <env.h>
10 11 #include <environment.h>
11 12 #include <net.h>
12 13 #include <netdev.h>
board/synopsys/hsdk/hsdk.c
... ... @@ -6,6 +6,7 @@
6 6  
7 7 #include <common.h>
8 8 #include <config.h>
  9 +#include <env.h>
9 10 #include <linux/printk.h>
10 11 #include <linux/kernel.h>
11 12 #include <linux/io.h>
... ... @@ -13,6 +13,7 @@
13 13 #include <asm/mach-imx/iomux-v3.h>
14 14 #include <asm/io.h>
15 15 #include <common.h>
  16 +#include <env.h>
16 17 #include <asm/arch/crm_regs.h>
17 18 #include <netdev.h>
18 19 #include <power/pmic.h>
... ... @@ -6,6 +6,7 @@
6 6 #include <common.h>
7 7 #include <command.h>
8 8 #include <dm.h>
  9 +#include <env.h>
9 10 #include <asm/unaligned.h>
10 11 #include <linux/string.h>
11 12 #include <tpm-common.h>
drivers/bootcount/bootcount_env.c
... ... @@ -5,6 +5,7 @@
5 5 */
6 6  
7 7 #include <common.h>
  8 +#include <env.h>
8 9 #include <environment.h>
9 10  
10 11 void bootcount_store(ulong a)
... ... @@ -6,6 +6,7 @@
6 6  
7 7 #include <common.h>
8 8 #include <dm.h>
  9 +#include <env.h>
9 10 #include <pci.h>
10 11 #include <scsi.h>
11 12 #include <dm/device-internal.h>
... ... @@ -9,6 +9,7 @@
9 9 #include <common.h>
10 10 #include <asm/io.h>
11 11 #include <asm/byteorder.h>
  12 +#include <env.h>
12 13  
13 14 #ifdef CONFIG_DM_BOOTCOUNT
14 15  
... ... @@ -200,15 +200,6 @@
200 200 */
201 201 int env_set(const char *varname, const char *value);
202 202  
203   -/**
204   - * env_set_ulong() - set an environment variable to an integer
205   - *
206   - * @varname: Variable to adjust
207   - * @value: Value to set for the variable (will be converted to a string)
208   - * @return 0 if OK, 1 on error
209   - */
210   -int env_set_ulong(const char *varname, ulong value);
211   -
212 203 void pci_init_board(void);
213 204  
214 205 /* common/exports.c */
... ... @@ -64,6 +64,15 @@
64 64 int env_get_f(const char *name, char *buf, unsigned int len);
65 65  
66 66 /**
  67 + * env_set_ulong() - set an environment variable to an integer
  68 + *
  69 + * @varname: Variable to adjust
  70 + * @value: Value to set for the variable (will be converted to a string)
  71 + * @return 0 if OK, 1 on error
  72 + */
  73 +int env_set_ulong(const char *varname, ulong value);
  74 +
  75 +/**
67 76 * env_set_hex() - set an environment variable to a hex value
68 77 *
69 78 * @varname: Variable to adjust