[PATCH] hid-debug: Show application usage for each collection.

Subsystems: hid core layer, the rest

STALE5473d

6 messages, 3 authors, 2011-08-24 · open the first message on its own page

[PATCH] hid-debug: Show application usage for each collection.

From: <hidden>
Date: 2011-08-15 23:39:32

From: Jeff Brown <redacted>

Signed-off-by: jeffbrown@android.com
---
 drivers/hid/hid-debug.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index bae4874..9a243ca 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");
-- 
1.7.0.4

Re: [PATCH] hid-debug: Show application usage for each collection.

From: Benjamin Tissoires <hidden>
Date: 2011-08-16 07:32:55

On Tue, Aug 16, 2011 at 01:39,  [off-list ref] wrote:
From: Jeff Brown <redacted>
Reviewed-by: Benjamin Tissoires <redacted>
quoted hunk
Signed-off-by: jeffbrown@android.com
---
 drivers/hid/hid-debug.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index bae4874..9a243ca 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");
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: [PATCH] hid-debug: Show application usage for each collection.

From: Jiri Kosina <hidden>
Date: 2011-08-16 09:37:58

On Tue, 16 Aug 2011, Benjamin Tissoires wrote:
quoted
From: Jeff Brown <redacted>
Reviewed-by: Benjamin Tissoires <redacted>
Applied, thanks.

-- 
Jiri Kosina
SUSE Labs

Re: [PATCH] hid-debug: Show application usage for each collection.

From: Jeffrey Brown <hidden>
Date: 2011-08-24 18:58:46

On Tue, Aug 16, 2011 at 12:32 AM, Benjamin Tissoires
[off-list ref] wrote:
On Tue, Aug 16, 2011 at 01:39,  [off-list ref] wrote:
quoted
From: Jeff Brown <redacted>
Reviewed-by: Benjamin Tissoires <redacted>
Just a friendly ping.

Do I need to do anything more on this, or on the other patch to hid-multitouch?
quoted
Signed-off-by: jeffbrown@android.com
---
 drivers/hid/hid-debug.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index bae4874..9a243ca 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");
--
1.7.0.4

--
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: [PATCH] hid-debug: Show application usage for each collection.

From: Jiri Kosina <hidden>
Date: 2011-08-24 19:04:26

On Wed, 24 Aug 2011, Jeffrey Brown wrote:
quoted
quoted
From: Jeff Brown <redacted>
Reviewed-by: Benjamin Tissoires <redacted>
Just a friendly ping.

Do I need to do anything more on this, or on the other patch to 
hid-multitouch?
Hi Jeffrey,

it's queued in my tree, 'upstream' branch.

[1] http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=summary

-- 
Jiri Kosina
SUSE Labs

Re: [PATCH] hid-debug: Show application usage for each collection.

From: Jeffrey Brown <hidden>
Date: 2011-08-24 19:06:05

On Wed, Aug 24, 2011 at 12:04 PM, Jiri Kosina [off-list ref] wrote:
Hi Jeffrey,

it's queued in my tree, 'upstream' branch.

[1] http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=summary
Great!  Thanks.

Jeff.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help