Searched refs:htcpen_dev (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/input/touchscreen/
H A Dhtcpen.c52 struct input_dev *htcpen_dev = handle; htcpen_interrupt() local
59 input_report_key(htcpen_dev, BTN_TOUCH, 0); htcpen_interrupt()
79 input_report_key(htcpen_dev, BTN_TOUCH, 1); htcpen_interrupt()
80 input_report_abs(htcpen_dev, ABS_X, x); htcpen_interrupt()
81 input_report_abs(htcpen_dev, ABS_Y, y); htcpen_interrupt()
85 input_sync(htcpen_dev); htcpen_interrupt()
107 struct input_dev *htcpen_dev; htcpen_isa_probe() local
128 htcpen_dev = input_allocate_device(); htcpen_isa_probe()
129 if (!htcpen_dev) { htcpen_isa_probe()
135 htcpen_dev->name = "HTC Shift EC TouchScreen"; htcpen_isa_probe()
136 htcpen_dev->id.bustype = BUS_ISA; htcpen_isa_probe()
138 htcpen_dev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY); htcpen_isa_probe()
139 htcpen_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); htcpen_isa_probe()
140 input_set_abs_params(htcpen_dev, ABS_X, 0, X_AXIS_MAX, 0, 0); htcpen_isa_probe()
141 input_set_abs_params(htcpen_dev, ABS_Y, 0, Y_AXIS_MAX, 0, 0); htcpen_isa_probe()
143 htcpen_dev->open = htcpen_open; htcpen_isa_probe()
144 htcpen_dev->close = htcpen_close; htcpen_isa_probe()
147 htcpen_dev); htcpen_isa_probe()
155 err = input_register_device(htcpen_dev); htcpen_isa_probe()
159 dev_set_drvdata(dev, htcpen_dev); htcpen_isa_probe()
164 free_irq(HTCPEN_IRQ, htcpen_dev); htcpen_isa_probe()
166 input_free_device(htcpen_dev); htcpen_isa_probe()
179 struct input_dev *htcpen_dev = dev_get_drvdata(dev); htcpen_isa_remove() local
181 input_unregister_device(htcpen_dev); htcpen_isa_remove()
183 free_irq(HTCPEN_IRQ, htcpen_dev); htcpen_isa_remove()

Completed in 43 milliseconds