Fix typo in CONFIG_USBNET_DEVADDR

Fix typo that was caused by the same feature being split in to 2 different
configuration options. Replace CONFIG_USBNET_DEVADDR with
CONFIG_USBNET_DEV_ADDR

Signed-off-by: Ignacio Zamora <nachopitt@gmail.com>
This commit is contained in:
Ignacio Zamora 2022-10-08 09:50:56 -05:00 committed by Tom Rini
parent fa1f99a521
commit 34803205eb
3 changed files with 2 additions and 4 deletions

View File

@ -241,7 +241,7 @@ config USB_ETH_RNDIS
endchoice endchoice
config USBNET_DEVADDR config USBNET_DEV_ADDR
string "USB Gadget Ethernet device mac address" string "USB Gadget Ethernet device mac address"
default "de:ad:be:ef:00:01" default "de:ad:be:ef:00:01"
help help

View File

@ -2620,7 +2620,7 @@ static int usb_eth_probe(struct udevice *dev)
priv->netdev = dev; priv->netdev = dev;
l_priv = priv; l_priv = priv;
get_ether_addr(CONFIG_USBNET_DEVADDR, pdata->enetaddr); get_ether_addr(CONFIG_USBNET_DEV_ADDR, pdata->enetaddr);
eth_env_set_enetaddr("usbnet_devaddr", pdata->enetaddr); eth_env_set_enetaddr("usbnet_devaddr", pdata->enetaddr);
return 0; return 0;

View File

@ -100,8 +100,6 @@
/* USB Device Firmware Update support */ /* USB Device Firmware Update support */
#define DFU_DEFAULT_POLL_TIMEOUT 300 #define DFU_DEFAULT_POLL_TIMEOUT 300
#define CONFIG_USBNET_DEV_ADDR "de:ad:be:af:00:01"
/* Environment variable name to represent HAB enable state */ /* Environment variable name to represent HAB enable state */
#define HAB_ENABLED_ENVNAME "hab_enabled" #define HAB_ENABLED_ENVNAME "hab_enabled"