Lines Matching refs:mk712_dev

75 static struct input_dev *mk712_dev;  variable
96 input_report_key(mk712_dev, BTN_TOUCH, 0); in mk712_interrupt()
105 input_report_key(mk712_dev, BTN_TOUCH, 1); in mk712_interrupt()
106 input_report_abs(mk712_dev, ABS_X, last_x); in mk712_interrupt()
107 input_report_abs(mk712_dev, ABS_Y, last_y); in mk712_interrupt()
112 input_sync(mk712_dev); in mk712_interrupt()
167 mk712_dev = input_allocate_device(); in mk712_init()
168 if (!mk712_dev) { in mk712_init()
174 mk712_dev->name = "ICS MicroClock MK712 TouchScreen"; in mk712_init()
175 mk712_dev->phys = "isa0260/input0"; in mk712_init()
176 mk712_dev->id.bustype = BUS_ISA; in mk712_init()
177 mk712_dev->id.vendor = 0x0005; in mk712_init()
178 mk712_dev->id.product = 0x0001; in mk712_init()
179 mk712_dev->id.version = 0x0100; in mk712_init()
181 mk712_dev->open = mk712_open; in mk712_init()
182 mk712_dev->close = mk712_close; in mk712_init()
184 mk712_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in mk712_init()
185 mk712_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); in mk712_init()
186 input_set_abs_params(mk712_dev, ABS_X, 0, 0xfff, 88, 0); in mk712_init()
187 input_set_abs_params(mk712_dev, ABS_Y, 0, 0xfff, 88, 0); in mk712_init()
189 if (request_irq(mk712_irq, mk712_interrupt, 0, "mk712", mk712_dev)) { in mk712_init()
195 err = input_register_device(mk712_dev); in mk712_init()
201 fail2: free_irq(mk712_irq, mk712_dev); in mk712_init()
202 fail1: input_free_device(mk712_dev); in mk712_init()
209 input_unregister_device(mk712_dev); in mk712_exit()
210 free_irq(mk712_irq, mk712_dev); in mk712_exit()