Lines Matching refs:input
16 #include <linux/input.h>
84 * @input: The input device we registered with the input subsystem.
97 struct input_dev *input;
143 input_report_abs(ts.input, ABS_X, ts.xp);
144 input_report_abs(ts.input, ABS_Y, ts.yp);
146 input_report_key(ts.input, BTN_TOUCH, 1);
147 input_sync(ts.input);
160 input_report_key(ts.input, BTN_TOUCH, 0);
161 input_sync(ts.input);
257 * register with the ADC and input systems.
267 /* Initialise input stuff */
333 dev_err(dev, "Unable to allocate the input device !!\n");
338 ts.input = input_dev;
339 ts.input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
340 ts.input->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
341 input_set_abs_params(ts.input, ABS_X, 0, 0x3FF, 0, 0);
342 input_set_abs_params(ts.input, ABS_Y, 0, 0x3FF, 0, 0);
344 ts.input->name = "S3C24XX TouchScreen";
345 ts.input->id.bustype = BUS_HOST;
346 ts.input->id.vendor = 0xDEAD;
347 ts.input->id.product = 0xBEEF;
348 ts.input->id.version = 0x0102;
354 "s3c2410_ts_pen", ts.input);
360 dev_info(dev, "driver attached, registering input device\n");
362 /* All went ok, so register to the input system */
363 ret = input_register_device(ts.input);
365 dev_err(dev, "failed to register input device\n");
373 free_irq(ts.irq_tc, ts.input);
375 input_free_device(ts.input);
394 free_irq(ts.irq_tc, ts.input);
400 input_unregister_device(ts.input);