env: Move get_env_id() to env.h

Move this function over to the new header file. Also rename it to have an
env_ prefix like the other functions.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
Simon Glass 2019-08-01 09:46:41 -06:00 committed by Tom Rini
parent af95f2061a
commit f1f0ae6a9c
5 changed files with 18 additions and 7 deletions

View file

@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <env.h>
#include <environment.h>
#include <miiphy.h>
#include <net.h>
@ -110,7 +111,7 @@ void eth_set_current(void)
static int env_changed_id;
int env_id;
env_id = get_env_id();
env_id = env_get_id();
if ((act == NULL) || (env_changed_id != env_id)) {
act = env_get("ethact");
env_changed_id = env_id;