diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2014-03-28 20:41:27 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-03-28 21:35:02 -0400 |
commit | 269ddfc68a49ed885a32c4d6bedb088bd3312b8c (patch) | |
tree | 318ce4747c3df805c1ab588c1a5de2014ae2afbf /drivers | |
parent | 6fd182028c43baf1c7d017d52b0134ecadbdc447 (diff) |
HID: hyperv: Implement a stub raw_request() entry point
commit 3c86726cfe38 ("HID: make .raw_request mandatory") made .raw_request
mandatory and broke the Hyper-V mouse driver. This patch fixes the problem.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/hid-hyperv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c index 8fae6d1414cc..866e6a86203c 100644 --- a/drivers/hid/hid-hyperv.c +++ b/drivers/hid/hid-hyperv.c | |||
@@ -455,12 +455,22 @@ static void mousevsc_hid_stop(struct hid_device *hid) | |||
455 | { | 455 | { |
456 | } | 456 | } |
457 | 457 | ||
458 | static int mousevsc_hid_raw_request(struct hid_device *hid, | ||
459 | unsigned char report_num, | ||
460 | __u8 buf, size_t len, | ||
461 | unsigned char rtype, | ||
462 | int reqtype) | ||
463 | { | ||
464 | return 0; | ||
465 | } | ||
466 | |||
458 | static struct hid_ll_driver mousevsc_ll_driver = { | 467 | static struct hid_ll_driver mousevsc_ll_driver = { |
459 | .parse = mousevsc_hid_parse, | 468 | .parse = mousevsc_hid_parse, |
460 | .open = mousevsc_hid_open, | 469 | .open = mousevsc_hid_open, |
461 | .close = mousevsc_hid_close, | 470 | .close = mousevsc_hid_close, |
462 | .start = mousevsc_hid_start, | 471 | .start = mousevsc_hid_start, |
463 | .stop = mousevsc_hid_stop, | 472 | .stop = mousevsc_hid_stop, |
473 | .raw_request = mousevsc_hid_raw_request, | ||
464 | }; | 474 | }; |
465 | 475 | ||
466 | static struct hid_driver mousevsc_hid_driver; | 476 | static struct hid_driver mousevsc_hid_driver; |