aboutsummaryrefslogtreecommitdiff
path: root/net/eth_common.c
diff options
context:
space:
mode:
authorSimon Glass2019-08-01 09:46:41 -0600
committerTom Rini2019-08-11 16:43:41 -0400
commitf1f0ae6a9ce7f4bd148daac233a70a065623d3dd (patch)
treefb3943ddae06d279a8493f596aba1dc5cbc39f03 /net/eth_common.c
parentaf95f2061aee57ce76e1d62a6962724cc5a849a8 (diff)
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>
Diffstat (limited to 'net/eth_common.c')
-rw-r--r--net/eth_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/eth_common.c b/net/eth_common.c
index 63f9379eec2..dcc59186d89 100644
--- a/net/eth_common.c
+++ b/net/eth_common.c
@@ -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;