Skip to content

Commit

Permalink
HID: hyperv: Implement a stub raw_request() entry point
Browse files Browse the repository at this point in the history
commit 3c86726 ("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>
  • Loading branch information
K. Y. Srinivasan authored and Jiri Kosina committed Mar 29, 2014
1 parent 6fd1820 commit 269ddfc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/hid/hid-hyperv.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,22 @@ static void mousevsc_hid_stop(struct hid_device *hid)
{
}

static int mousevsc_hid_raw_request(struct hid_device *hid,
unsigned char report_num,
__u8 buf, size_t len,
unsigned char rtype,
int reqtype)
{
return 0;
}

static struct hid_ll_driver mousevsc_ll_driver = {
.parse = mousevsc_hid_parse,
.open = mousevsc_hid_open,
.close = mousevsc_hid_close,
.start = mousevsc_hid_start,
.stop = mousevsc_hid_stop,
.raw_request = mousevsc_hid_raw_request,
};

static struct hid_driver mousevsc_hid_driver;
Expand Down

0 comments on commit 269ddfc

Please sign in to comment.