summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2014-11-12 22:44:05 +0800
committerFelipe Balbi <balbi@ti.com>2014-11-12 08:59:24 -0600
commit0fc57ea0595e2d12eb4d5c8509d4b4aec864c9c5 (patch)
tree9e85ef63dfd57c13cc489c0b71a05d521a5298ac /drivers/usb
parente5ba1c024aa0c21ef1755402fd94fabfd6e18c16 (diff)
downloadop-kernel-dev-0fc57ea0595e2d12eb4d5c8509d4b4aec864c9c5.zip
op-kernel-dev-0fc57ea0595e2d12eb4d5c8509d4b4aec864c9c5.tar.gz
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')
-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 56ca3fc..7d18f41 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;
OpenPOWER on IntegriCloud