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

Commit e4246b65 authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Vijayavardhan Vennapusa
Browse files

usb: gadget: Add support for UVC function



Add support for the UVC function with configfs
framework.

Change-Id: Ide98938666eb6d935a5cb0f4ee24669147bddf92
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent af6e75fd
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -952,5 +952,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");