summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-10-09 02:32:18 +0100
committerAndy Green <andy.green@linaro.org>2011-10-10 04:46:43 +0100
commit44d96451cf3eab6bc7d134f0c350b97c49c083ca (patch)
treef44c19cf618d71fd5345df76e39a80c7c3fef11d
parenta225016d8896685ad146f7de6917119545dc735e (diff)
downloadpanda-44d96451cf3eab6bc7d134f0c350b97c49c083ca.tar.gz
hid-debug: Show application usage for each collection.
Change-Id: If8d3ef8647209143b5f0c171c385d37faf82de64 Signed-off-by: jeffbrown@android.com
-rw-r--r--drivers/hid/hid-debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index bae48745bb4..9a243ca96e6 100644
--- a/drivers/hid/hid-debug.c
+++ b/drivers/hid/hid-debug.c
@@ -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");