Commit 870e53ad authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: mousevsc: Fixup struct hv_input_dev_info

This structure is protocol defined structure and must match the definition
on the host side. Make appropriate adjustments.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9d5d1153
...@@ -30,10 +30,11 @@ ...@@ -30,10 +30,11 @@
* Data types * Data types
*/ */
struct hv_input_dev_info { struct hv_input_dev_info {
unsigned int size;
unsigned short vendor; unsigned short vendor;
unsigned short product; unsigned short product;
unsigned short version; unsigned short version;
char name[128]; unsigned short reserved[11];
}; };
/* The maximum size of a synthetic input message. */ /* The maximum size of a synthetic input message. */
...@@ -686,7 +687,7 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len) ...@@ -686,7 +687,7 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len)
hid_dev->dev = dev->device; hid_dev->dev = dev->device;
sprintf(hid_dev->name, "%s", sprintf(hid_dev->name, "%s",
input_device_ctx->device_info.name); "Microsoft Vmbus HID-compliant Mouse");
/* /*
* HJ Do we want to call it with a 0 * HJ Do we want to call it with a 0
...@@ -763,7 +764,6 @@ static int mousevsc_on_device_add(struct hv_device *device, ...@@ -763,7 +764,6 @@ static int mousevsc_on_device_add(struct hv_device *device,
dev_info.vendor = input_dev->hid_dev_info.vendor; dev_info.vendor = input_dev->hid_dev_info.vendor;
dev_info.product = input_dev->hid_dev_info.product; dev_info.product = input_dev->hid_dev_info.product;
dev_info.version = input_dev->hid_dev_info.version; dev_info.version = input_dev->hid_dev_info.version;
strcpy(dev_info.name, "Microsoft Vmbus HID-compliant Mouse");
/* Send the device info back up */ /* Send the device info back up */
input_device_ctx = dev_get_drvdata(&device->device); input_device_ctx = dev_get_drvdata(&device->device);
......
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