Skip to contentSkip to conversation

usb: usbtest: Fix the pattern parameter description

PATCH New Karl Mehltretter 1 participant 1 message Sep 6 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: usbtest: Fix the pattern parameter description

The module parameter is pattern, but its MODULE_PARM_DESC() names the variable behind it, mod_pattern, so modinfo describes a parameter that does not exist and shows no description for the real one.

Use the parameter name in the description.

Fixes 7f4e985448e8 ("usbtest: make module param pattern writeable")
Assisted-by LLM
---
 drivers/usb/misc/usbtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/misc/usbtest.c +1 -1
index 8759df49be28..e2d7087c28a9 100644
@@ -337,7 +337,7 @@ static struct urb *complicated_alloc_urb(
 static unsigned pattern;
 static unsigned mod_pattern;
 module_param_named(pattern, mod_pattern, uint, S_IRUGO | S_IWUSR);
-MODULE_PARM_DESC(mod_pattern, "i/o pattern (0 == zeroes)");
+MODULE_PARM_DESC(pattern, "i/o pattern (0 == zeroes)");
 
 static unsigned get_maxpacket(struct usb_device *udev, int pipe)
 {

base-commit: 986c24e0fe44f844b44d365b71ce831947f50298

Signature · 1 line
2.53.0