summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/f_hid.c
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2014-11-12 17:44:05 +0300
committerFelipe Balbi <balbi@ti.com>2014-11-12 17:59:24 +0300
commit0fc57ea0595e2d12eb4d5c8509d4b4aec864c9c5 (patch)
tree9e85ef63dfd57c13cc489c0b71a05d521a5298ac /drivers/usb/gadget/function/f_hid.c
parente5ba1c024aa0c21ef1755402fd94fabfd6e18c16 (diff)
downloadlinux-0fc57ea0595e2d12eb4d5c8509d4b4aec864c9c5.tar.xz
usb: gadget: f_hid: hidg_alloc() can be static
drivers/usb/gadget/function/f_hid.c:852:21: sparse: symbol 'hidg_alloc' was not declared. Should it be static? Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_hid.c')
-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 56ca3fc81555..7d18f413ffea 100644
--- a/drivers/usb/gadget/function/f_hid.c
+++ b/drivers/usb/gadget/function/f_hid.c
@@ -913,7 +913,7 @@ static void hidg_unbind(struct usb_configuration *c, struct usb_function *f)
usb_free_all_descriptors(f);
}
-struct usb_function *hidg_alloc(struct usb_function_instance *fi)
+static struct usb_function *hidg_alloc(struct usb_function_instance *fi)
{
struct f_hidg *hidg;
struct f_hid_opts *opts;