summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLad, Prabhakar <prabhakar.csengg@gmail.com>2015-02-04 18:49:36 +0100
committerFelipe Balbi <balbi@ti.com>2015-02-23 16:21:22 +0100
commit7a3cc4618497e1c6b2f9cd4c8c20759ad8ceb2d1 (patch)
treee63d6784d69db0f95c540f8f50b19dbbd97eaf22
parentusb: isp1760: use msecs_to_jiffies for time conversion (diff)
downloadlinux-7a3cc4618497e1c6b2f9cd4c8c20759ad8ceb2d1.tar.xz
linux-7a3cc4618497e1c6b2f9cd4c8c20759ad8ceb2d1.zip
usb: gadget: function: f_hid: fix sparse warning
this patch fixes following sparse warning: f_hid.c:572:30: warning: symbol 'f_hidg_fops' was not declared. Should it be static? Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/function/f_hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c
index 426d69a9c018..a2612fb79eff 100644
--- a/drivers/usb/gadget/function/f_hid.c
+++ b/drivers/usb/gadget/function/f_hid.c
@@ -569,7 +569,7 @@ fail:
return status;
}
-const struct file_operations f_hidg_fops = {
+static const struct file_operations f_hidg_fops = {
.owner = THIS_MODULE,
.open = f_hidg_open,
.release = f_hidg_release,