Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236320
b: refs/heads/master
c: 680eeb1
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent b122512 commit bcbfecd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 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: 67a5ee2d5e8fde860188f2ba145a724e6f453d42
refs/heads/master: 680eeb15c0c71642b8a1a3a2583aa160cdd6ba7e
21 changes: 7 additions & 14 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,8 @@ struct input_device_context {
int connected;
};

struct mousevsc_driver_context {
struct mousevsc_drv_obj drv_obj;
};

static struct mousevsc_driver_context g_mousevsc_drv;
static struct mousevsc_drv_obj g_mousevsc_drv;

static void deviceinfo_callback(struct hv_device *dev, struct hv_input_dev_info *info)
{
Expand Down Expand Up @@ -824,9 +821,7 @@ static int mousevsc_probe(struct device *device)

struct hv_driver *drv =
drv_to_hv_drv(device->driver);
struct mousevsc_driver_context *mousevsc_drv_ctx =
(struct mousevsc_driver_context *)drv->priv;
struct mousevsc_drv_obj *mousevsc_drv_obj = &mousevsc_drv_ctx->drv_obj;
struct mousevsc_drv_obj *mousevsc_drv_obj = drv->priv;

struct vm_device *device_ctx = device_to_vm_device(device);
struct hv_device *device_obj = &device_ctx->device_obj;
Expand Down Expand Up @@ -855,9 +850,7 @@ static int mousevsc_remove(struct device *device)

struct hv_driver *drv =
drv_to_hv_drv(device->driver);
struct mousevsc_driver_context *mousevsc_drv_ctx =
(struct mousevsc_driver_context *)drv->priv;
struct mousevsc_drv_obj *mousevsc_drv_obj = &mousevsc_drv_ctx->drv_obj;
struct mousevsc_drv_obj *mousevsc_drv_obj = drv->priv;

struct vm_device *device_ctx = device_to_vm_device(device);
struct hv_device *device_obj = &device_ctx->device_obj;
Expand Down Expand Up @@ -956,8 +949,8 @@ static int mousevsc_drv_exit_cb(struct device *dev, void *data)

static void mousevsc_drv_exit(void)
{
struct mousevsc_drv_obj *mousevsc_drv_obj = &g_mousevsc_drv.drv_obj;
struct hv_driver *drv = &g_mousevsc_drv.drv_obj.Base;
struct mousevsc_drv_obj *mousevsc_drv_obj = &g_mousevsc_drv;
struct hv_driver *drv = &g_mousevsc_drv.Base;
int ret;

struct device *current_dev = NULL;
Expand Down Expand Up @@ -1008,8 +1001,8 @@ static int mouse_vsc_initialize(struct hv_driver *Driver)

static int __init mousevsc_init(void)
{
struct mousevsc_drv_obj *input_drv_obj = &g_mousevsc_drv.drv_obj;
struct hv_driver *drv = &g_mousevsc_drv.drv_obj.Base;
struct mousevsc_drv_obj *input_drv_obj = &g_mousevsc_drv;
struct hv_driver *drv = &g_mousevsc_drv.Base;

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

Expand Down

0 comments on commit bcbfecd

Please sign in to comment.