diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:11 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-16 08:23:56 -0400 |
commit | fd1e959e91d2b0b2e853d09dd9167dfff18a616c (patch) | |
tree | 1d59086cd330cd9c061521f9564edfb9d75e1dc9 /net/eth_common.c | |
parent | 018f530323b2cc41be05be5b12375d3648f06554 (diff) | |
download | u-boot-fd1e959e91d2b0b2e853d09dd9167dfff18a616c.tar.gz |
env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr()
Rename this function for consistency with env_set().
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/eth_common.c')
-rw-r--r-- | net/eth_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/eth_common.c b/net/eth_common.c index ef97da7267..7b36532ee1 100644 --- a/net/eth_common.c +++ b/net/eth_common.c @@ -30,7 +30,7 @@ int eth_getenv_enetaddr(const char *name, uchar *enetaddr) return is_valid_ethaddr(enetaddr); } -int eth_setenv_enetaddr(const char *name, const uchar *enetaddr) +int eth_env_set_enetaddr(const char *name, const uchar *enetaddr) { char buf[ARP_HLEN_ASCII + 1]; @@ -50,12 +50,12 @@ int eth_getenv_enetaddr_by_index(const char *base_name, int index, return eth_getenv_enetaddr(enetvar, enetaddr); } -int eth_setenv_enetaddr_by_index(const char *base_name, int index, +int eth_env_set_enetaddr_by_index(const char *base_name, int index, uchar *enetaddr) { char enetvar[32]; sprintf(enetvar, index ? "%s%daddr" : "%saddr", base_name, index); - return eth_setenv_enetaddr(enetvar, enetaddr); + return eth_env_set_enetaddr(enetvar, enetaddr); } void eth_common_init(void) |