mirror of
https://xff.cz/git/u-boot/
synced 2025-10-17 07:52:46 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user