diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-11-06 05:12:03 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-06 17:18:19 -0500 |
commit | 21a9476a7ba847e413bf1c144d7c614532aed6dd (patch) | |
tree | 606683b13651d00398aa9a0b5a873fcf1d49ba32 /Documentation/usb/gadget_hid.txt | |
parent | 5ca8d3ec9970f4798e68bd21a9d44db3d0ff4da7 (diff) |
usb: gadget: hid: add configfs support
Make the hid function available for gadgets composed with configfs.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation/usb/gadget_hid.txt')
-rw-r--r-- | Documentation/usb/gadget_hid.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/usb/gadget_hid.txt b/Documentation/usb/gadget_hid.txt index 12696c2e43fb..7a0fb8e16e27 100644 --- a/Documentation/usb/gadget_hid.txt +++ b/Documentation/usb/gadget_hid.txt | |||
@@ -74,6 +74,13 @@ static struct platform_device my_hid = { | |||
74 | You can add as many HID functions as you want, only limited by | 74 | You can add as many HID functions as you want, only limited by |
75 | the amount of interrupt endpoints your gadget driver supports. | 75 | the amount of interrupt endpoints your gadget driver supports. |
76 | 76 | ||
77 | Configuration with configfs | ||
78 | |||
79 | Instead of adding fake platform devices and drivers in order to pass | ||
80 | some data to the kernel, if HID is a part of a gadget composed with | ||
81 | configfs the hidg_func_descriptor.report_desc is passed to the kernel | ||
82 | by writing the appropriate stream of bytes to a configfs attribute. | ||
83 | |||
77 | Send and receive HID reports | 84 | Send and receive HID reports |
78 | 85 | ||
79 | HID reports can be sent/received using read/write on the | 86 | HID reports can be sent/received using read/write on the |