]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: gadget: function: f_hid: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Wed, 4 Feb 2015 17:49:36 +0000 (17:49 +0000)
committerFelipe Balbi <balbi@ti.com>
Mon, 23 Feb 2015 15:21:22 +0000 (09:21 -0600)
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>
drivers/usb/gadget/function/f_hid.c

index 426d69a9c018a0a651beac78ce63709c4b283613..a2612fb79eff261ee336b73940f88e7514f9c5e0 100644 (file)
@@ -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,