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"); if (init_data) { tsc->poll_period = init_data-...
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...
set_bit(EV_KEY, _input_device->evbit); 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_de...
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); mouse->irq->tra...
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_abs_params(dev, ABS_X, MY_MIN_VALUE, MY_MAX_VALUE, 0, 0)...
input_set_abs_params(dev, ABS_X, ABSMIN_2G, ABSMAX_2G, 0, 0); input_set_abs_params(dev, ABS_Y, ABSMIN_2G, ABSMAX_2G, 0, 0); input_set_abs_params(dev, ABS_Z, ABSMIN_2G, ABSMAX_2G, 0, 0); input_set_drvdata(dev, bma150); err = input_register_device(dev); ...
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);/...
724 input_set_drvdata(input, ddata); 725 726 input->name = pdata->name ?: pdev->name; 727 input->phys ="gpio-keys/input0"; 728 input->dev.parent =&pdev->dev; 729 input->open = gpio_keys_open; 730 input->close = gpio_keys_close; ...
70. platform_set_drvdata(pdev, ts); 71. printk(KERN_INFO "ts 1wire probe success.\n"); 72. DBG("###\n"); 73. return 0; 74. 75.err_hard_timer_req: 76. gsc3280_free_hard_timer(&ts->ts_hard_timer); 77.err_gpio_
16.input_set_drvdata(dev, bma150); 17. 18.err=input_register_device(dev); 19.if (err<0) { 20.input_free_device(dev); 21.return err; 22.} 23.bma150->input=dev; 24. 25.return 0; 26.} 据说可以指定input号 dev->phys = "bma150/input0"; ...