Commit 037c061b authored by David Herrmann's avatar David Herrmann Committed by Jiri Kosina

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: default avatarDavid Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 5e87a36a
...@@ -106,7 +106,9 @@ static int uhid_hid_input(struct input_dev *input, unsigned int type, ...@@ -106,7 +106,9 @@ static int uhid_hid_input(struct input_dev *input, unsigned int type,
static int uhid_hid_parse(struct hid_device *hid) static int uhid_hid_parse(struct hid_device *hid)
{ {
return 0; struct uhid_device *uhid = hid->driver_data;
return hid_parse_report(hid, uhid->rd_data, uhid->rd_size);
} }
static int uhid_hid_get_raw(struct hid_device *hid, unsigned char rnum, static int uhid_hid_get_raw(struct hid_device *hid, unsigned char rnum,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment