Commit 988fab6f authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: usbtest just uses module_param()

This prevents some warnings during modprobe.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 2e18d4f8
...@@ -459,8 +459,8 @@ static int perform_sglist ( ...@@ -459,8 +459,8 @@ static int perform_sglist (
* or remote wakeup (which needs human interaction). * or remote wakeup (which needs human interaction).
*/ */
static int realworld = 1; static unsigned realworld = 1;
MODULE_PARM (realworld, "i"); module_param (realworld, uint, 0);
MODULE_PARM_DESC (realworld, "clear to demand stricter ch9 compliance"); MODULE_PARM_DESC (realworld, "clear to demand stricter ch9 compliance");
static int get_altsetting (struct usbtest_dev *dev) static int get_altsetting (struct usbtest_dev *dev)
...@@ -1808,17 +1808,17 @@ usbtest_ioctl (struct usb_interface *intf, unsigned int code, void *buf) ...@@ -1808,17 +1808,17 @@ usbtest_ioctl (struct usb_interface *intf, unsigned int code, void *buf)
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
static int force_interrupt = 0; static unsigned force_interrupt = 0;
MODULE_PARM (force_interrupt, "i"); module_param (force_interrupt, uint, 0);
MODULE_PARM_DESC (force_interrupt, "0 = test default; else interrupt"); MODULE_PARM_DESC (force_interrupt, "0 = test default; else interrupt");
#ifdef GENERIC #ifdef GENERIC
static int vendor; static unsigned short vendor;
MODULE_PARM (vendor, "h"); module_param(vendor, ushort, 0);
MODULE_PARM_DESC (vendor, "vendor code (from usb-if)"); MODULE_PARM_DESC (vendor, "vendor code (from usb-if)");
static int product; static unsigned short product;
MODULE_PARM (product, "h"); module_param(product, ushort, 0);
MODULE_PARM_DESC (product, "product code (from vendor)"); MODULE_PARM_DESC (product, "product code (from vendor)");
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment