env: Move non-cli env functions to env/common.c
authorMarek Behún <marek.behun@nic.cz>
Sun, 17 Oct 2021 15:36:38 +0000 (17:36 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Oct 2021 18:50:48 +0000 (12:50 -0600)
commitf231566475c545de476a3bf5f596c246c52511aa
tree5ca4315422f6725caa7b6f77cbc97145e1c6f086
parenta80652ebb394abfd508feb38090228f5e5290d32
env: Move non-cli env functions to env/common.c

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@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/nvedit.c
env/common.c