Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6-block.git] / Documentation / usb / gadget_hid.txt
index 12696c2e43fb1391b52b09d4ca405cfd1d7bce9d..7a0fb8e16e27508d6b16baf8196f7575ae3b7b9f 100644 (file)
@@ -74,6 +74,13 @@ static struct platform_device my_hid = {
        You can add as many HID functions as you want, only limited by
        the amount of interrupt endpoints your gadget driver supports.
 
+Configuration with configfs
+
+       Instead of adding fake platform devices and drivers in order to pass
+       some data to the kernel, if HID is a part of a gadget composed with
+       configfs the hidg_func_descriptor.report_desc is passed to the kernel
+       by writing the appropriate stream of bytes to a configfs attribute.
+
 Send and receive HID reports
 
        HID reports can be sent/received using read/write on the