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>
This commit is contained in:
		
							parent
							
								
									c7694dd483
								
							
						
					
					
						commit
						168068fb3d
					
				|  | @ -5,6 +5,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <mmc.h> | #include <mmc.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <spl.h> | #include <spl.h> | ||||||
| #include <asm/arch/cpu.h> | #include <asm/arch/cpu.h> | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ | ||||||
|  * B&R Industrial Automation GmbH - http://www.br-automation.com/ *
 |  * B&R Industrial Automation GmbH - http://www.br-automation.com/ *
 | ||||||
|  */ |  */ | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
| #include <dm/uclass.h> | #include <dm/uclass.h> | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <environment.h> | #include <environment.h> | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
| #include <miiphy.h> | #include <miiphy.h> | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <mmc.h> | #include <mmc.h> | ||||||
| #include <asm/arch/sys_proto.h> | #include <asm/arch/sys_proto.h> | ||||||
| #include <watchdog.h> | #include <watchdog.h> | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <board.h> | #include <board.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <env.h> | ||||||
| #include <fdt_support.h> | #include <fdt_support.h> | ||||||
| #include <fsl_esdhc.h> | #include <fsl_esdhc.h> | ||||||
| #include <miiphy.h> | #include <miiphy.h> | ||||||
|  |  | ||||||
|  | @ -17,6 +17,7 @@ | ||||||
| #include <asm/mach-imx/boot_mode.h> | #include <asm/mach-imx/boot_mode.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <fsl_esdhc_imx.h> | #include <fsl_esdhc_imx.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
| #include <linux/fb.h> | #include <linux/fb.h> | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <environment.h> | #include <environment.h> | ||||||
| #include <net.h> | #include <net.h> | ||||||
| #include <netdev.h> | #include <netdev.h> | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <config.h> | #include <config.h> | ||||||
|  | #include <env.h> | ||||||
| #include <linux/printk.h> | #include <linux/printk.h> | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
|  |  | ||||||
|  | @ -13,6 +13,7 @@ | ||||||
| #include <asm/mach-imx/iomux-v3.h> | #include <asm/mach-imx/iomux-v3.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <asm/arch/crm_regs.h> | #include <asm/arch/crm_regs.h> | ||||||
| #include <netdev.h> | #include <netdev.h> | ||||||
| #include <power/pmic.h> | #include <power/pmic.h> | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <command.h> | #include <command.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <env.h> | ||||||
| #include <asm/unaligned.h> | #include <asm/unaligned.h> | ||||||
| #include <linux/string.h> | #include <linux/string.h> | ||||||
| #include <tpm-common.h> | #include <tpm-common.h> | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <env.h> | ||||||
| #include <environment.h> | #include <environment.h> | ||||||
| 
 | 
 | ||||||
| void bootcount_store(ulong a) | void bootcount_store(ulong a) | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <env.h> | ||||||
| #include <pci.h> | #include <pci.h> | ||||||
| #include <scsi.h> | #include <scsi.h> | ||||||
| #include <dm/device-internal.h> | #include <dm/device-internal.h> | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/byteorder.h> | #include <asm/byteorder.h> | ||||||
|  | #include <env.h> | ||||||
| 
 | 
 | ||||||
| #ifdef CONFIG_DM_BOOTCOUNT | #ifdef CONFIG_DM_BOOTCOUNT | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -200,15 +200,6 @@ int env_get_yesno(const char *var); | ||||||
|  */ |  */ | ||||||
| int env_set(const char *varname, const char *value); | 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); | void	pci_init_board(void); | ||||||
| 
 | 
 | ||||||
| /* common/exports.c */ | /* common/exports.c */ | ||||||
|  |  | ||||||
|  | @ -63,6 +63,15 @@ int env_match(unsigned char *name, int index); | ||||||
|  */ |  */ | ||||||
| int env_get_f(const char *name, char *buf, unsigned int len); | 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 |  * env_set_hex() - set an environment variable to a hex value | ||||||
|  * |  * | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue