[PATCH] Fix typo in CONFIG_USBNET_DEVADDR

nachopitt nachopitt at gmail.com
Sat Oct 8 16:50:56 CEST 2022


From: Ignacio Zamora <nachopitt at gmail.com>

Fix typo that was causing the same feature to be
splitted into 2 different configuration options

Replacing CONFIG_USBNET_DEVADDR with CONFIG_USBNET_DEV_ADDR

Signed-off-by: Ignacio Zamora <nachopitt at gmail.com>
---
 drivers/usb/gadget/Kconfig | 2 +-
 drivers/usb/gadget/ether.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index da9c9e3f10..e8da73c788 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -241,7 +241,7 @@ config USB_ETH_RNDIS
 
 endchoice
 
-config USBNET_DEVADDR
+config USBNET_DEV_ADDR
 	string "USB Gadget Ethernet device mac address"
 	default "de:ad:be:ef:00:01"
 	help
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index abb5332f13..6ce389de9f 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -2620,7 +2620,7 @@ static int usb_eth_probe(struct udevice *dev)
 	priv->netdev = dev;
 	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);
 
 	return 0;
-- 
2.30.2.windows.1



More information about the U-Boot mailing list