usb: usbtest: Fix the pattern parameter description
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
Signed-off-by Karl Mehltretter <[email protected]>
--- drivers/usb/misc/usbtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/misc/usbtest.c +1 -1
@@ -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