diff options
| author | Simon Glass <sjg@chromium.org> | 2019-08-01 09:46:47 -0600 | 
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2019-08-11 16:43:41 -0400 | 
| commit | 168068fb3d7da3d95bf37b21f39347f48d38497f (patch) | |
| tree | f67394a7a39bb129368ba8df6c7978f4b0a0c344 | |
| parent | c7694dd4837ba12db3bcda872a1047a44566e0e8 (diff) | |
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>
| -rw-r--r-- | arch/arm/mach-uniphier/mmc-first-dev.c | 1 | ||||
| -rw-r--r-- | board/BuR/brppt1/board.c | 1 | ||||
| -rw-r--r-- | board/BuR/common/br_resetc.c | 1 | ||||
| -rw-r--r-- | board/CZ.NIC/turris_omnia/turris_omnia.c | 1 | ||||
| -rw-r--r-- | board/engicam/common/board.c | 1 | ||||
| -rw-r--r-- | board/gdsys/mpc8308/gazerbeam.c | 1 | ||||
| -rw-r--r-- | board/grinn/liteboard/board.c | 1 | ||||
| -rw-r--r-- | board/imgtec/ci20/ci20.c | 1 | ||||
| -rw-r--r-- | board/synopsys/hsdk/hsdk.c | 1 | ||||
| -rw-r--r-- | board/warp7/warp7.c | 1 | ||||
| -rw-r--r-- | cmd/tpm-common.c | 1 | ||||
| -rw-r--r-- | drivers/bootcount/bootcount_env.c | 1 | ||||
| -rw-r--r-- | drivers/scsi/scsi.c | 1 | ||||
| -rw-r--r-- | include/bootcount.h | 1 | ||||
| -rw-r--r-- | include/common.h | 9 | ||||
| -rw-r--r-- | include/env.h | 9 | 
16 files changed, 23 insertions, 9 deletions
| diff --git a/arch/arm/mach-uniphier/mmc-first-dev.c b/arch/arm/mach-uniphier/mmc-first-dev.c index 2f1c109b9e2..149e662070f 100644 --- a/arch/arm/mach-uniphier/mmc-first-dev.c +++ b/arch/arm/mach-uniphier/mmc-first-dev.c @@ -5,6 +5,7 @@   */  #include <common.h> +#include <env.h>  #include <mmc.h>  #include <linux/errno.h> diff --git a/board/BuR/brppt1/board.c b/board/BuR/brppt1/board.c index b8ab19c0e71..ef4f5c95014 100644 --- a/board/BuR/brppt1/board.c +++ b/board/BuR/brppt1/board.c @@ -10,6 +10,7 @@   */  #include <common.h> +#include <env.h>  #include <errno.h>  #include <spl.h>  #include <asm/arch/cpu.h> diff --git a/board/BuR/common/br_resetc.c b/board/BuR/common/br_resetc.c index c8cc73ab141..c0e7fb65b29 100644 --- a/board/BuR/common/br_resetc.c +++ b/board/BuR/common/br_resetc.c @@ -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> diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index 5f6ea35e5f6..418657c2d57 100644 --- a/board/CZ.NIC/turris_omnia/turris_omnia.c +++ b/board/CZ.NIC/turris_omnia/turris_omnia.c @@ -8,6 +8,7 @@   */  #include <common.h> +#include <env.h>  #include <environment.h>  #include <i2c.h>  #include <miiphy.h> diff --git a/board/engicam/common/board.c b/board/engicam/common/board.c index 567b9f63e59..0c47afe5b56 100644 --- a/board/engicam/common/board.c +++ b/board/engicam/common/board.c @@ -6,6 +6,7 @@   */  #include <common.h> +#include <env.h>  #include <mmc.h>  #include <asm/arch/sys_proto.h>  #include <watchdog.h> diff --git a/board/gdsys/mpc8308/gazerbeam.c b/board/gdsys/mpc8308/gazerbeam.c index cd621744d28..ddd6ee89538 100644 --- a/board/gdsys/mpc8308/gazerbeam.c +++ b/board/gdsys/mpc8308/gazerbeam.c @@ -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> diff --git a/board/grinn/liteboard/board.c b/board/grinn/liteboard/board.c index 1491b8c3d4b..1558ea4b84f 100644 --- a/board/grinn/liteboard/board.c +++ b/board/grinn/liteboard/board.c @@ -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> diff --git a/board/imgtec/ci20/ci20.c b/board/imgtec/ci20/ci20.c index 9811ef559fc..f72a660581c 100644 --- a/board/imgtec/ci20/ci20.c +++ b/board/imgtec/ci20/ci20.c @@ -7,6 +7,7 @@   */  #include <common.h> +#include <env.h>  #include <environment.h>  #include <net.h>  #include <netdev.h> diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index ac4d980c49f..8a7642a0aaa 100644 --- a/board/synopsys/hsdk/hsdk.c +++ b/board/synopsys/hsdk/hsdk.c @@ -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> diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 134a6c99d74..39ae9822573 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -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> diff --git a/cmd/tpm-common.c b/cmd/tpm-common.c index 89f2aa001ba..38900fb1590 100644 --- a/cmd/tpm-common.c +++ b/cmd/tpm-common.c @@ -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> diff --git a/drivers/bootcount/bootcount_env.c b/drivers/bootcount/bootcount_env.c index 9084ca8a6e8..50e0857b3bf 100644 --- a/drivers/bootcount/bootcount_env.c +++ b/drivers/bootcount/bootcount_env.c @@ -5,6 +5,7 @@   */  #include <common.h> +#include <env.h>  #include <environment.h>  void bootcount_store(ulong a) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 75900d82283..48cb2a2818b 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -6,6 +6,7 @@  #include <common.h>  #include <dm.h> +#include <env.h>  #include <pci.h>  #include <scsi.h>  #include <dm/device-internal.h> diff --git a/include/bootcount.h b/include/bootcount.h index daee84316c7..8fa8cf82181 100644 --- a/include/bootcount.h +++ b/include/bootcount.h @@ -9,6 +9,7 @@  #include <common.h>  #include <asm/io.h>  #include <asm/byteorder.h> +#include <env.h>  #ifdef CONFIG_DM_BOOTCOUNT diff --git a/include/common.h b/include/common.h index 100eac6e5e9..283cb23fd11 100644 --- a/include/common.h +++ b/include/common.h @@ -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 */ diff --git a/include/env.h b/include/env.h index 5c780f30d61..8898b78b8e4 100644 --- a/include/env.h +++ b/include/env.h @@ -64,6 +64,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   *   * @varname: Variable to adjust | 
