summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:46:41 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commitf1f0ae6a9ce7f4bd148daac233a70a065623d3dd (patch)
treefb3943ddae06d279a8493f596aba1dc5cbc39f03 /drivers/net
parentaf95f2061aee57ce76e1d62a6962724cc5a849a8 (diff)
downloadu-boot-f1f0ae6a9ce7f4bd148daac233a70a065623d3dd.tar.gz
u-boot-f1f0ae6a9ce7f4bd148daac233a70a065623d3dd.tar.bz2
u-boot-f1f0ae6a9ce7f4bd148daac233a70a065623d3dd.zip
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 'drivers/net')
-rw-r--r--drivers/net/netconsole.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index ce5a15ef57..73005ff94d 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
+#include <env.h>
#include <stdio_dev.h>
#include <net.h>
@@ -55,7 +56,7 @@ static int is_broadcast(struct in_addr ip)
static struct in_addr netmask;
static struct in_addr our_ip;
static int env_changed_id;
- int env_id = get_env_id();
+ int env_id = env_get_id();
/* update only when the environment has changed */
if (env_changed_id != env_id) {
@@ -75,7 +76,7 @@ static int refresh_settings_from_env(void)
{
const char *p;
static int env_changed_id;
- int env_id = get_env_id();
+ int env_id = env_get_id();
/* update only when the environment has changed */
if (env_changed_id != env_id) {