projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d3db7d
)
usb: gadget: function: f_hid: fix sparse warning
author
Lad, Prabhakar
<prabhakar.csengg@gmail.com>
Wed, 4 Feb 2015 17:49:36 +0000
(17:49 +0000)
committer
Felipe 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
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/function/f_hid.c
b/drivers/usb/gadget/function/f_hid.c
index 426d69a9c018a0a651beac78ce63709c4b283613..a2612fb79eff261ee336b73940f88e7514f9c5e0 100644
(file)
--- 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,