Lines Matching defs:input2
80 * @input2: pointer to the kernel input2 device
98 struct input_dev *input2;
416 input_report_rel(hdata->input2, REL_X, sp_x);
417 input_report_rel(hdata->input2, REL_Y, sp_y);
419 input_report_key(hdata->input2, BTN_LEFT,
421 input_report_key(hdata->input2, BTN_RIGHT,
423 input_report_key(hdata->input2, BTN_MIDDLE,
426 input_sync(hdata->input2);
677 struct input_dev *input = hi->input, *input2;
732 input2 = input_allocate_device();
733 if (!input2) {
738 data->input2 = input2;
739 input2->phys = input->phys;
740 input2->name = "DualPoint Stick";
741 input2->id.bustype = BUS_I2C;
742 input2->id.vendor = input->id.vendor;
743 input2->id.product = input->id.product;
744 input2->id.version = input->id.version;
745 input2->dev.parent = input->dev.parent;
747 input_set_drvdata(input2, hdev);
748 input2->open = alps_sp_open;
749 input2->close = alps_sp_close;
751 __set_bit(EV_KEY, input2->evbit);
754 __set_bit(BTN_LEFT + i, input2->keybit);
756 __set_bit(EV_REL, input2->evbit);
757 __set_bit(REL_X, input2->relbit);
758 __set_bit(REL_Y, input2->relbit);
759 __set_bit(INPUT_PROP_POINTER, input2->propbit);
760 __set_bit(INPUT_PROP_POINTING_STICK, input2->propbit);
762 if (input_register_device(data->input2)) {
763 input_free_device(input2);