Home
last modified time | relevance | path

Searched refs:w8001 (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/input/touchscreen/
Dwacom_w8001.c82 struct w8001 { struct
136 static void scale_touch_coordinates(struct w8001 *w8001, in scale_touch_coordinates() argument
139 if (w8001->max_pen_x && w8001->max_touch_x) in scale_touch_coordinates()
140 *x = *x * w8001->max_pen_x / w8001->max_touch_x; in scale_touch_coordinates()
142 if (w8001->max_pen_y && w8001->max_touch_y) in scale_touch_coordinates()
143 *y = *y * w8001->max_pen_y / w8001->max_touch_y; in scale_touch_coordinates()
146 static void parse_multi_touch(struct w8001 *w8001) in parse_multi_touch() argument
148 struct input_dev *dev = w8001->touch_dev; in parse_multi_touch()
149 unsigned char *data = w8001->data; in parse_multi_touch()
165 scale_touch_coordinates(w8001, &x, &y); in parse_multi_touch()
[all …]