Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323471
b: refs/heads/master
c: 8db089d
h: refs/heads/master
i:
  323469: 127d925
  323467: 97cbad9
  323463: 1f6cf4e
  323455: 6846110
v: v3
  • Loading branch information
Henrik Rydberg authored and Jiri Kosina committed Aug 27, 2012
1 parent 0cbc4b9 commit b8a6d4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b0be5b3bac6376ea55bfcbac04cc521428043742
refs/heads/master: 8db089d1b08209c04cd130e49fa4796b5513ce7f
12 changes: 9 additions & 3 deletions trunk/drivers/hid/hid-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,15 +911,21 @@ static void hid_dump_input_mapping(struct hid_device *hid, struct seq_file *f)

}


static int hid_debug_rdesc_show(struct seq_file *f, void *p)
{
struct hid_device *hdev = f->private;
const __u8 *rdesc = hdev->rdesc;
unsigned rsize = hdev->rsize;
int i;

if (!rdesc) {
rdesc = hdev->dev_rdesc;
rsize = hdev->dev_rsize;
}

/* dump HID report descriptor */
for (i = 0; i < hdev->rsize; i++)
seq_printf(f, "%02x ", hdev->rdesc[i]);
for (i = 0; i < rsize; i++)
seq_printf(f, "%02x ", rdesc[i]);
seq_printf(f, "\n\n");

/* dump parsed data and input mappings */
Expand Down

0 comments on commit b8a6d4f

Please sign in to comment.