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

Commit 2a0049bd authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Add support for UVC function"

parents 9f930da8 bf7212fb
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -931,5 +931,18 @@ static struct usb_function *uvc_alloc(struct usb_function_instance *fi)
}

DECLARE_USB_FUNCTION_INIT(uvc, uvc_alloc_inst, uvc_alloc);

static int uvc_init(void)
{
	return usb_function_register(&uvcusb_func);
}
module_init(uvc_init);

static void __exit uvc_exit(void)
{
	usb_function_unregister(&uvcusb_func);
}
module_exit(uvc_exit);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Laurent Pinchart");