summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2013-11-25 11:10:59 -0600
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-05-15 07:26:54 +0200
commit4a57b0fa9f20b194c9f303036dda100f4a721bf5 (patch)
treec9b9b7f8583305100daa518c6bc662683d4fb9fd
parent67ffffaa6a98f3aa02319c06467dbc33b6feb368 (diff)
downloadlinux-3.10-4a57b0fa9f20b194c9f303036dda100f4a721bf5.tar.gz
linux-3.10-4a57b0fa9f20b194c9f303036dda100f4a721bf5.tar.bz2
linux-3.10-4a57b0fa9f20b194c9f303036dda100f4a721bf5.zip
usb: gadget: zero: module parameters can be static
g_zero's module parameters can, and should, be static. This fixes sparse warnings. Cc: Peter Chen <peter.chen@freescale.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/zero.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c
index 17a25ba8eea..134f354ede6 100644
--- a/drivers/usb/gadget/zero.c
+++ b/drivers/usb/gadget/zero.c
@@ -91,17 +91,17 @@ static struct usb_zero_options gzero_options = {
* functional coverage for the "USBCV" test harness from USB-IF.
* It's always set if OTG mode is enabled.
*/
-unsigned autoresume = DEFAULT_AUTORESUME;
+static unsigned autoresume = DEFAULT_AUTORESUME;
module_param(autoresume, uint, S_IRUGO);
MODULE_PARM_DESC(autoresume, "zero, or seconds before remote wakeup");
/* Maximum Autoresume time */
-unsigned max_autoresume;
+static unsigned max_autoresume;
module_param(max_autoresume, uint, S_IRUGO);
MODULE_PARM_DESC(max_autoresume, "maximum seconds before remote wakeup");
/* Interval between two remote wakeups */
-unsigned autoresume_interval_ms;
+static unsigned autoresume_interval_ms;
module_param(autoresume_interval_ms, uint, S_IRUGO);
MODULE_PARM_DESC(autoresume_interval_ms,
"milliseconds to increase successive wakeup delays");