diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-06-10 15:16:20 +0200 |
---|---|---|
committer | Pawit Pornkitprasan <p.pawit@gmail.com> | 2012-12-05 23:04:10 +0700 |
commit | 14face8a1655fa0f4faf34a726664f9b290a81d2 (patch) | |
tree | 1217289638ff1bc021aea8bd079a124b06d11214 /drivers/hid | |
parent | 8b32afb36dd38aea4e7ce3cfda58d6ec9a45e3fc (diff) | |
download | kernel_samsung_aries-14face8a1655fa0f4faf34a726664f9b290a81d2.zip kernel_samsung_aries-14face8a1655fa0f4faf34a726664f9b290a81d2.tar.gz kernel_samsung_aries-14face8a1655fa0f4faf34a726664f9b290a81d2.tar.bz2 |
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 3d1ebda..0d011db 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, 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, |