Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fc57ea0 authored by Fengguang Wu's avatar Fengguang Wu Committed by Felipe Balbi
Browse files

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent e5ba1c02
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;