mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
af95f2061a
commit
f1f0ae6a9c
5 changed files with 18 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue