Skip to contentSkip to conversation

net: usb: mcs7830: fix typo in module description and clarify it

PATCH In review Ethan Nelson-Moore 2 participants 2 messages May 5

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: usb: mcs7830: fix typo in module description and clarify it

The mcs7830 driver's MODULE_DESCRIPTION has an errant parenthesis and does not indicate that the device is an Ethernet adapter. Remove the parenthesis and improve the description.

---
 drivers/net/usb/mcs7830.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/usb/mcs7830.c +1 -1
index d6698f30218d..161f021ed419 100644
@@ -626,5 +626,5 @@ static struct usb_driver mcs7830_driver = {
 
 module_usb_driver(mcs7830_driver);
 
-MODULE_DESCRIPTION("USB to network adapter MCS7830)");
+MODULE_DESCRIPTION("MCS7830 USB to Ethernet adapter driver");
 MODULE_LICENSE("GPL");
Signature · 1 line
2.43.0
#1 lore raw
Quoted 1 line · Ethan Nelson-Moore

The mcs7830 driver's MODULE_DESCRIPTION has an errant parenthesis

MODULE_DESCRIPTION()

Quoted 2 lines

and does not indicate that the device is an Ethernet adapter. Remove the parenthesis and improve the description.

...

drivers/net/usb/mcs7830.c static struct usb_driver mcs7830_driver = { · line 629

Quoted 2 lines
drivers/net/usb/mcs7830.c +1 -1
-MODULE_DESCRIPTION("USB to network adapter MCS7830)");
+MODULE_DESCRIPTION("MCS7830 USB to Ethernet adapter driver");

It's better to align this with the top comment

* MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices

Another option is to align to Kconfig help

tristate "MosChip MCS7830 based Ethernet adapters"

(ideally all three should be the same).

Signature · 2 lines
With Best Regards,
Andy Shevchenko