usb: gadget: uvc: uvc_alloc() can be static
authorFengguang Wu <fengguang.wu@intel.com>
Tue, 16 Sep 2014 14:26:46 +0000 (17:26 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 16 Sep 2014 14:58:52 +0000 (09:58 -0500)
The function isn't called from outside of its compilation unit, make it
static.

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_uvc.c

index 95dc1c68948c8bbc020f4ada06c42663e2e3e302..bf9abf4aff226fa3404764d80c706cec6addf560 100644 (file)
@@ -773,7 +773,7 @@ static void uvc_unbind(struct usb_configuration *c, struct usb_function *f)
        usb_free_all_descriptors(f);
 }
 
-struct usb_function *uvc_alloc(struct usb_function_instance *fi)
+static struct usb_function *uvc_alloc(struct usb_function_instance *fi)
 {
        struct uvc_device *uvc;
        struct f_uvc_opts *opts;