Skip to content

Commit

Permalink
usb: gadget: uvc: uvc_alloc() can be static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fengguang Wu authored and Felipe Balbi committed Sep 16, 2014
1 parent 1b0bf88 commit 4a6698b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/function/f_uvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a6698b

Please sign in to comment.