Lines Matching refs:hp680_ts_dev
23 static struct input_dev *hp680_ts_dev; variable
58 input_report_key(hp680_ts_dev, BTN_TOUCH, 1); in do_softint()
59 input_report_abs(hp680_ts_dev, ABS_X, absx); in do_softint()
60 input_report_abs(hp680_ts_dev, ABS_Y, absy); in do_softint()
62 input_report_key(hp680_ts_dev, BTN_TOUCH, 0); in do_softint()
65 input_sync(hp680_ts_dev); in do_softint()
81 hp680_ts_dev = input_allocate_device(); in hp680_ts_init()
82 if (!hp680_ts_dev) in hp680_ts_init()
85 hp680_ts_dev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY); in hp680_ts_init()
86 hp680_ts_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); in hp680_ts_init()
88 input_set_abs_params(hp680_ts_dev, ABS_X, in hp680_ts_init()
90 input_set_abs_params(hp680_ts_dev, ABS_Y, in hp680_ts_init()
93 hp680_ts_dev->name = "HP Jornada touchscreen"; in hp680_ts_init()
94 hp680_ts_dev->phys = "hp680_ts/input0"; in hp680_ts_init()
104 err = input_register_device(hp680_ts_dev); in hp680_ts_init()
112 fail1: input_free_device(hp680_ts_dev); in hp680_ts_init()
120 input_unregister_device(hp680_ts_dev); in hp680_ts_exit()