Lines Matching refs:hp680_ts_dev
22 static struct input_dev *hp680_ts_dev; variable
57 input_report_key(hp680_ts_dev, BTN_TOUCH, 1); in do_softint()
58 input_report_abs(hp680_ts_dev, ABS_X, absx); in do_softint()
59 input_report_abs(hp680_ts_dev, ABS_Y, absy); in do_softint()
61 input_report_key(hp680_ts_dev, BTN_TOUCH, 0); in do_softint()
64 input_sync(hp680_ts_dev); in do_softint()
80 hp680_ts_dev = input_allocate_device(); in hp680_ts_init()
81 if (!hp680_ts_dev) in hp680_ts_init()
84 hp680_ts_dev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY); in hp680_ts_init()
85 hp680_ts_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); in hp680_ts_init()
87 input_set_abs_params(hp680_ts_dev, ABS_X, in hp680_ts_init()
89 input_set_abs_params(hp680_ts_dev, ABS_Y, in hp680_ts_init()
92 hp680_ts_dev->name = "HP Jornada touchscreen"; in hp680_ts_init()
93 hp680_ts_dev->phys = "hp680_ts/input0"; in hp680_ts_init()
103 err = input_register_device(hp680_ts_dev); in hp680_ts_init()
111 fail1: input_free_device(hp680_ts_dev); in hp680_ts_init()
119 input_unregister_device(hp680_ts_dev); in hp680_ts_exit()