input_set_capability(input_dev, EV_MSC, MSC_SCAN);input_set_drvdata(input_dev, keypad);/* Ensure that the keypad will stay dormant until opened */clk_prepare_enable(keypad->clk); imx_keypad_inhibit(keypad); clk_disable_unprepare(keypad->clk); error = devm_request_irq(&pdev->dev, ir...
input_set_drvdata(input_dev, xpad); input_dev->open = xpad_open; input_dev->close = xpad_close; input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);/* set up buttons */for(i =0; xpad_common_btn[i] >=0; i++) set_bit(xpad_common_btn[i], input_dev->keybit)...
input_set_drvdata(input_dev, hid); input_dev->event = hid->hidinput_input_event; input_dev->open = hidinput_open; input_dev->close = hidinput_close; input_dev->setkeycode = hidinput_setkeycode; input_dev->getkeycode = hidinput_getkeycode; input_dev->name = hid->name; input_dev...
&input_dev->id);input_dev->dev.parent=&intf->dev;input_dev->evbit[0]=BIT_MASK(EV_KEY)|BIT_MASK(EV_REL);input_dev->keybit[BIT_WORD(BTN_MOUSE)]=BIT_MASK(BTN_LEFT)|BIT_MASK(BTN_RIGHT)|BIT_MASK(BTN_MIDDLE);input_dev->
set_bit(KEY_F1, _input_device->keybit); set_bit(KEY_F2, _input_device->keybit); set_bit(KEY_F4, _input_device->keybit); set_bit(KEY_F5, _input_device->keybit); input_set_drvdata(_input_device, customer_data); if (input_register_device(_input_device)){ ...
dev_set_name(&dev->dev, "mytest_dev"); input_set_drvdata(dev, client_data); client_data->input = dev; input_set_capability(dev, EV_MSC, MSC_RAW); input_set_capability(dev, EV_MSC, MSC_GESTURE); input_set_capability(dev, EV_MSC, MSC_TIMESTAMP); ...
input_set_drvdata(input_dev, tsc);//保存tsc结构到input_dev中 tsc->input_dev = input_dev;//tsc结构指向初始化过的input_dev设备 INIT_DELAYED_WORK(&tsc->work, tps6507x_ts_handler); tsc->wq = create_workqueue("TPS6507x Touchscreen"); ...
13.input_set_abs_params(dev, ABS_X, ABSMIN_2G, ABSMAX_2G, 0, 0); 14.input_set_abs_params(dev, ABS_Y, ABSMIN_2G, ABSMAX_2G, 0, 0); 15.input_set_abs_params(dev, ABS_Z, ABSMIN_2G, ABSMAX_2G, 0, 0); 16.input_set_drvdata(dev, bma150); ...
input_set_drvdata(input_dev, mouse); input_dev->open = usb_mouse_open; input_dev->close = usb_mouse_close; /*填充int urb基本数据;*/ usb_fill_int_urb(mouse->irq, dev, pipe, mouse->data, (maxp> 8 ? 8 : maxp) , usb_mouse_irq, mouse, endpoint->bInterval); ...
input_set_abs_params(input, ABS_X, LPC32XX_TSC_MIN_XY_VAL,LPC32XX_TSC_MAX_XY_VAL, 0, 0); input_set_abs_params(input, ABS_Y, LPC32XX_TSC_MIN_XY_VAL,LPC32XX_TSC_MAX_XY_VAL, 0, 0); input_set_drvdata(input, tsc);/...