summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_uvc.c
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2014-09-16 17:26:46 +0300
committerFelipe Balbi <balbi@ti.com>2014-09-16 09:58:52 -0500
commit4a6698b80cfe36dd4e3c6bc30ab81b4e0a837f64 (patch)
tree850ca60d3acb6085e2ba4e4af7159b2df400c74f /drivers/usb/gadget/function/f_uvc.c
parent1b0bf88fd8b845aef4300c7c0feca774265dd1c4 (diff)
downloadblackbird-op-linux-4a6698b80cfe36dd4e3c6bc30ab81b4e0a837f64.tar.gz
blackbird-op-linux-4a6698b80cfe36dd4e3c6bc30ab81b4e0a837f64.zip
usb: gadget: uvc: uvc_alloc() can be static
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>
Diffstat (limited to 'drivers/usb/gadget/function/f_uvc.c')
-rw-r--r--drivers/usb/gadget/function/f_uvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_uvc.c b/drivers/usb/gadget/function/f_uvc.c
index 95dc1c68948c..bf9abf4aff22 100644
--- a/drivers/usb/gadget/function/f_uvc.c
+++ b/drivers/usb/gadget/function/f_uvc.c
@@ -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;
OpenPOWER on IntegriCloud