maplemouse.c (1cb0aa88179b7a71c240529e9d781d7bbb43d2e8) | maplemouse.c (5298cc4cc753bbe4c530b41341834f6ef3344d0d) |
---|---|
1/* 2 * SEGA Dreamcast mouse driver 3 * Based on drivers/usb/usbmouse.c 4 * 5 * Copyright (c) Yaegashi Takeshi, 2001 6 * Copyright (c) Adrian McMenamin, 2008 - 2009 7 */ 8 --- 50 unchanged lines hidden (view full) --- 59{ 60 struct dc_mouse *mse = maple_get_drvdata(to_maple_dev(&dev->dev)); 61 62 maple_getcond_callback(mse->mdev, dc_mouse_callback, 0, 63 MAPLE_FUNC_MOUSE); 64} 65 66/* allow the mouse to be used */ | 1/* 2 * SEGA Dreamcast mouse driver 3 * Based on drivers/usb/usbmouse.c 4 * 5 * Copyright (c) Yaegashi Takeshi, 2001 6 * Copyright (c) Adrian McMenamin, 2008 - 2009 7 */ 8 --- 50 unchanged lines hidden (view full) --- 59{ 60 struct dc_mouse *mse = maple_get_drvdata(to_maple_dev(&dev->dev)); 61 62 maple_getcond_callback(mse->mdev, dc_mouse_callback, 0, 63 MAPLE_FUNC_MOUSE); 64} 65 66/* allow the mouse to be used */ |
67static int __devinit probe_maple_mouse(struct device *dev) | 67static int probe_maple_mouse(struct device *dev) |
68{ 69 struct maple_device *mdev = to_maple_dev(dev); 70 struct maple_driver *mdrv = to_maple_driver(dev->driver); 71 int error; 72 struct input_dev *input_dev; 73 struct dc_mouse *mse; 74 75 mse = kzalloc(sizeof(struct dc_mouse), GFP_KERNEL); --- 75 unchanged lines hidden --- | 68{ 69 struct maple_device *mdev = to_maple_dev(dev); 70 struct maple_driver *mdrv = to_maple_driver(dev->driver); 71 int error; 72 struct input_dev *input_dev; 73 struct dc_mouse *mse; 74 75 mse = kzalloc(sizeof(struct dc_mouse), GFP_KERNEL); --- 75 unchanged lines hidden --- |