Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267922
b: refs/heads/master
c: 1ec91eb
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 25, 2011
1 parent 301917d commit 234f8d1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 345c4cc3b953a43464776701918e22c7e30cedd0
refs/heads/master: 1ec91ebe4da8fe016a16eec1177e8edb2ea57517
27 changes: 18 additions & 9 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ struct mousevsc_dev {

static const char *driver_name = "mousevsc";

/* {CFA8B69E-5B4A-4cc0-B98B-8BA1A1F3F95A} */
static const uuid_le mouse_guid = {
.b = {0x9E, 0xB6, 0xA8, 0xCF, 0x4A, 0x5B, 0xc0, 0x4c,
0xB9, 0x8B, 0x8B, 0xA1, 0xA1, 0xF3, 0xF9, 0x5A}
};

static void deviceinfo_callback(struct hv_device *dev, struct hv_input_dev_info *info);
static void inputreport_callback(struct hv_device *dev, void *packet, u32 len);
static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len);
Expand Down Expand Up @@ -914,8 +908,26 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len)
kfree(hid_dev);
}

static const struct hv_vmbus_device_id id_table[] = {
{
/* Mouse guid */
.guid = {
0x9E, 0xB6, 0xA8, 0xCF, 0x4A, 0x5B, 0xc0, 0x4c,
0xB9, 0x8B, 0x8B, 0xA1, 0xA1, 0xF3, 0xF9, 0x5A
}
},
{
.guid = { }
},
};

/*
* The mouse driver is not functional; do not auto-load it.
*/
/* MODULE_DEVICE_TABLE(vmbus, id_table); */

static struct hv_driver mousevsc_drv = {
.id_table = id_table,
.probe = mousevsc_probe,
.remove = mousevsc_remove,
};
Expand All @@ -931,9 +943,6 @@ static int __init mousevsc_init(void)

DPRINT_INFO(INPUTVSC_DRV, "Hyper-V Mouse driver initializing.");

memcpy(&drv->dev_type, &mouse_guid,
sizeof(uuid_le));

drv->driver.name = driver_name;

/* The driver belongs to vmbus */
Expand Down

0 comments on commit 234f8d1

Please sign in to comment.