Lines Matching defs:dev2
23 struct input_dev *dev2; /* Relative device */
136 struct input_dev *dev2 = priv ? priv->dev2 : NULL;
169 if (!dev2)
188 if (dev2) {
190 psmouse_report_standard_motion(dev2, packet);
192 psmouse_report_standard_buttons(dev2, packet[0]);
193 input_sync(dev2);
247 input_unregister_device(priv->dev2);
272 struct input_dev *dev2;
277 dev2 = input_allocate_device();
278 if (!priv || !dev2)
281 priv->dev2 = dev2;
285 dev2->phys = priv->phys;
286 dev2->name = "LBPS/2 Fujitsu Lifebook Touchpad";
287 dev2->id.bustype = BUS_I8042;
288 dev2->id.vendor = 0x0002;
289 dev2->id.product = PSMOUSE_LIFEBOOK;
290 dev2->id.version = 0x0000;
291 dev2->dev.parent = &psmouse->ps2dev.serio->dev;
293 input_set_capability(dev2, EV_REL, REL_X);
294 input_set_capability(dev2, EV_REL, REL_Y);
295 input_set_capability(dev2, EV_KEY, BTN_LEFT);
296 input_set_capability(dev2, EV_KEY, BTN_RIGHT);
298 error = input_register_device(priv->dev2);
306 input_free_device(dev2);