Commit 168068fb3d7da3d95bf37b21f39347f48d38497f
Committed by
Tom Rini
1 parent
c7694dd483
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
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
- 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
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
... | ... | @@ -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 */ |
include/env.h
... | ... | @@ -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 |