Lines Matching refs:touchdev

207 	struct vf50_touch_device *touchdev = input_get_drvdata(dev_input);  in vf50_ts_open()  local
208 struct device *dev = &touchdev->pdev->dev; in vf50_ts_open()
213 touchdev->stop_touchscreen = false; in vf50_ts_open()
216 vf50_ts_enable_touch_detection(touchdev); in vf50_ts_open()
223 struct vf50_touch_device *touchdev = input_get_drvdata(dev_input); in vf50_ts_close() local
224 struct device *dev = &touchdev->pdev->dev; in vf50_ts_close()
226 touchdev->stop_touchscreen = true; in vf50_ts_close()
230 synchronize_irq(touchdev->pen_irq); in vf50_ts_close()
232 gpiod_set_value(touchdev->gpio_ym, 0); in vf50_ts_close()
266 struct vf50_touch_device *touchdev; in vf50_ts_probe() local
290 touchdev = devm_kzalloc(dev, sizeof(*touchdev), GFP_KERNEL); in vf50_ts_probe()
291 if (!touchdev) in vf50_ts_probe()
294 touchdev->pdev = pdev; in vf50_ts_probe()
295 touchdev->channels = channels; in vf50_ts_probe()
298 &touchdev->min_pressure); in vf50_ts_probe()
319 touchdev->ts_input = input; in vf50_ts_probe()
320 input_set_drvdata(input, touchdev); in vf50_ts_probe()
328 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_xp, "xp", GPIOD_OUT_LOW); in vf50_ts_probe()
332 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_xm, in vf50_ts_probe()
337 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_yp, "yp", GPIOD_OUT_LOW); in vf50_ts_probe()
341 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_ym, "ym", GPIOD_OUT_LOW); in vf50_ts_probe()
345 touchdev->pen_irq = platform_get_irq(pdev, 0); in vf50_ts_probe()
346 if (touchdev->pen_irq < 0) in vf50_ts_probe()
347 return touchdev->pen_irq; in vf50_ts_probe()
349 error = devm_request_threaded_irq(dev, touchdev->pen_irq, in vf50_ts_probe()
351 "vf50 touch", touchdev); in vf50_ts_probe()
354 touchdev->pen_irq, error); in vf50_ts_probe()