Lines Matching refs:touchdev
212 struct vf50_touch_device *touchdev = input_get_drvdata(dev_input); in vf50_ts_open() local
213 struct device *dev = &touchdev->pdev->dev; in vf50_ts_open()
218 touchdev->stop_touchscreen = false; in vf50_ts_open()
221 vf50_ts_enable_touch_detection(touchdev); in vf50_ts_open()
228 struct vf50_touch_device *touchdev = input_get_drvdata(dev_input); in vf50_ts_close() local
229 struct device *dev = &touchdev->pdev->dev; in vf50_ts_close()
231 touchdev->stop_touchscreen = true; in vf50_ts_close()
235 synchronize_irq(touchdev->pen_irq); in vf50_ts_close()
237 gpiod_set_value(touchdev->gpio_ym, 0); in vf50_ts_close()
271 struct vf50_touch_device *touchdev; in vf50_ts_probe() local
295 touchdev = devm_kzalloc(dev, sizeof(*touchdev), GFP_KERNEL); in vf50_ts_probe()
296 if (!touchdev) in vf50_ts_probe()
299 touchdev->pdev = pdev; in vf50_ts_probe()
300 touchdev->channels = channels; in vf50_ts_probe()
303 &touchdev->min_pressure); in vf50_ts_probe()
324 touchdev->ts_input = input; in vf50_ts_probe()
325 input_set_drvdata(input, touchdev); in vf50_ts_probe()
333 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_xp, "xp", GPIOD_OUT_LOW); in vf50_ts_probe()
337 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_xm, in vf50_ts_probe()
342 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_yp, "yp", GPIOD_OUT_LOW); in vf50_ts_probe()
346 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_ym, "ym", GPIOD_OUT_LOW); in vf50_ts_probe()
350 touchdev->pen_irq = platform_get_irq(pdev, 0); in vf50_ts_probe()
351 if (touchdev->pen_irq < 0) in vf50_ts_probe()
352 return touchdev->pen_irq; in vf50_ts_probe()
354 error = devm_request_threaded_irq(dev, touchdev->pen_irq, in vf50_ts_probe()
356 "vf50 touch", touchdev); in vf50_ts_probe()
359 touchdev->pen_irq, error); in vf50_ts_probe()