usb: gadget: f_hid: Add support for HID function
Add support for the HID function with the configfs framework. Change-Id: I4da589aa453f892bf26cf16ce1a80426100ac02d Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
This commit is contained in:
parent
fda16fc183
commit
e5f5ba3002
1 changed files with 14 additions and 0 deletions
|
@ -1134,6 +1134,20 @@ static struct usb_function *hidg_alloc(struct usb_function_instance *fi)
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLARE_USB_FUNCTION_INIT(hid, hidg_alloc_inst, hidg_alloc);
|
DECLARE_USB_FUNCTION_INIT(hid, hidg_alloc_inst, hidg_alloc);
|
||||||
|
|
||||||
|
static int __init afunc_init(void)
|
||||||
|
{
|
||||||
|
return usb_function_register(&hidusb_func);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void __exit afunc_exit(void)
|
||||||
|
{
|
||||||
|
usb_function_unregister(&hidusb_func);
|
||||||
|
}
|
||||||
|
|
||||||
|
module_init(afunc_init);
|
||||||
|
module_exit(afunc_exit);
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_AUTHOR("Fabien Chouteau");
|
MODULE_AUTHOR("Fabien Chouteau");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue