提交 54d3339a 编写于 作者: J Jeff Brown 提交者: Jiri Kosina

HID: hid-debug: Show application usage for each collection.

Signed-off-by: jeffbrown@android.com
Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@logitech.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 ad395cca
......@@ -450,6 +450,11 @@ void hid_dump_field(struct hid_field *field, int n, struct seq_file *f) {
seq_printf(f, "Logical(");
hid_resolv_usage(field->logical, f); seq_printf(f, ")\n");
}
if (field->application) {
tab(n, f);
seq_printf(f, "Application(");
hid_resolv_usage(field->application, f); seq_printf(f, ")\n");
}
tab(n, f); seq_printf(f, "Usage(%d)\n", field->maxusage);
for (j = 0; j < field->maxusage; j++) {
tab(n+2, f); hid_resolv_usage(field->usage[j].hid, f); seq_printf(f, "\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册