net: Always build the string_to_enetaddr() helper
authorJoe Hershberger <joe.hershberger@ni.com>
Sat, 14 Sep 2019 00:21:16 +0000 (19:21 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:41 +0000 (09:47 -0600)
commitfb8977c5be93f8e967df224fe0a44721d60e34dc
tree49a2f694f9ba5eee2302570311ec21b00bb659aa
parentb38c3a641fc01fcd4eda5fa107ae3c247baa0196
net: Always build the string_to_enetaddr() helper

Part of the env cleanup moved this out of the environment code and into
the net code. However, this helper is sometimes needed even when the net
stack isn't included.

Move the helper to lib/net_utils.c like it's similarly-purposed
string_to_ip(). Also rename the moved function to similar naming.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reported-by: Ondrej Jirman <megous@megous.com>
12 files changed:
arch/arm/mach-tegra/cboot.c
board/renesas/sh7752evb/sh7752evb.c
board/renesas/sh7753evb/sh7753evb.c
board/renesas/sh7757lcr/sh7757lcr.c
cmd/ethsw.c
cmd/nvedit.c
doc/README.enetaddr
include/net.h
lib/net_utils.c
net/eth-uclass.c
net/eth_legacy.c
net/net.c