[PATCH v3 13/13] env: Move non-cli env functions to env/common.c

Simon Glass sjg at chromium.org
Thu Oct 21 20:49:06 CEST 2021


From: Marek Behún <marek.behun at nic.cz>

Move the following functions from cmd/nvedit.c to env/common.c:
  env_set_ulong()
  env_set_hex()
  env_get_hex()
  eth_env_get_enetaddr()
  eth_env_set_enetaddr()
  env_get()
  from_env()
  env_get_f()
  env_get_ulong()
since these functions are not specific for U-Boot's CLI.

We leave env_set() in cmd/nvedit.c, since it calls _do_env_set(), which
is a static function in that file.

Signed-off-by: Marek Behún <marek.behun at nic.cz>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
 cmd/nvedit.c | 175 -------------------------------------------------
 env/common.c | 180 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 180 insertions(+), 175 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list