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()
262 struct vf50_touch_device *touchdev; in vf50_ts_probe() local
286 touchdev = devm_kzalloc(dev, sizeof(*touchdev), GFP_KERNEL); in vf50_ts_probe()
287 if (!touchdev) in vf50_ts_probe()
290 touchdev->pdev = pdev; in vf50_ts_probe()
291 touchdev->channels = channels; in vf50_ts_probe()
294 &touchdev->min_pressure); in vf50_ts_probe()
315 touchdev->ts_input = input; in vf50_ts_probe()
316 input_set_drvdata(input, touchdev); in vf50_ts_probe()
324 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_xp, "xp", GPIOD_OUT_LOW); in vf50_ts_probe()
328 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_xm, in vf50_ts_probe()
333 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_yp, "yp", GPIOD_OUT_LOW); in vf50_ts_probe()
337 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_ym, "ym", GPIOD_OUT_LOW); in vf50_ts_probe()
341 touchdev->pen_irq = platform_get_irq(pdev, 0); in vf50_ts_probe()
342 if (touchdev->pen_irq < 0) in vf50_ts_probe()
343 return touchdev->pen_irq; in vf50_ts_probe()
345 error = devm_request_threaded_irq(dev, touchdev->pen_irq, in vf50_ts_probe()
347 "vf50 touch", touchdev); in vf50_ts_probe()
350 touchdev->pen_irq, error); in vf50_ts_probe()