diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-06-10 09:16:20 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-06-18 07:42:01 -0400 |
commit | 037c061bca06cbfe9998476fb593090300fbbe87 (patch) | |
tree | befb564bbfbc3871f00e188706129b2af1f3c2d0 /drivers/hid | |
parent | 5e87a36ae375297b71cc21ac7e32846832bcfb34 (diff) |
HID: uhid: forward hid report-descriptor to hid core
When the uhid_hid_parse callback is called we simply forward it to
hid_parse_report() with the data that we got in the UHID_CREATE event.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/uhid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hid/uhid.c b/drivers/hid/uhid.c index 3d1ebda122e5..0d011db30a46 100644 --- a/drivers/hid/uhid.c +++ b/drivers/hid/uhid.c | |||
@@ -106,7 +106,9 @@ static int uhid_hid_input(struct input_dev *input, unsigned int type, | |||
106 | 106 | ||
107 | static int uhid_hid_parse(struct hid_device *hid) | 107 | static int uhid_hid_parse(struct hid_device *hid) |
108 | { | 108 | { |
109 | return 0; | 109 | struct uhid_device *uhid = hid->driver_data; |
110 | |||
111 | return hid_parse_report(hid, uhid->rd_data, uhid->rd_size); | ||
110 | } | 112 | } |
111 | 113 | ||
112 | static int uhid_hid_get_raw(struct hid_device *hid, unsigned char rnum, | 114 | static int uhid_hid_get_raw(struct hid_device *hid, unsigned char rnum, |