Searched refs:touchdev (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/input/touchscreen/
H A Dcolibri-vf50-ts.c212 struct vf50_touch_device *touchdev = input_get_drvdata(dev_input); vf50_ts_open() local
213 struct device *dev = &touchdev->pdev->dev; vf50_ts_open()
218 touchdev->stop_touchscreen = false; vf50_ts_open()
221 vf50_ts_enable_touch_detection(touchdev); vf50_ts_open()
228 struct vf50_touch_device *touchdev = input_get_drvdata(dev_input); vf50_ts_close() local
229 struct device *dev = &touchdev->pdev->dev; vf50_ts_close()
231 touchdev->stop_touchscreen = true; vf50_ts_close()
235 synchronize_irq(touchdev->pen_irq); vf50_ts_close()
237 gpiod_set_value(touchdev->gpio_ym, 0); vf50_ts_close()
271 struct vf50_touch_device *touchdev; vf50_ts_probe() local
295 touchdev = devm_kzalloc(dev, sizeof(*touchdev), GFP_KERNEL); vf50_ts_probe()
296 if (!touchdev) vf50_ts_probe()
299 touchdev->pdev = pdev; vf50_ts_probe()
300 touchdev->channels = channels; vf50_ts_probe()
303 &touchdev->min_pressure); vf50_ts_probe()
313 platform_set_drvdata(pdev, touchdev); vf50_ts_probe()
326 touchdev->ts_input = input; vf50_ts_probe()
327 input_set_drvdata(input, touchdev); vf50_ts_probe()
335 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_xp, "xp", GPIOD_OUT_LOW); vf50_ts_probe()
339 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_xm, vf50_ts_probe()
344 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_yp, "yp", GPIOD_OUT_LOW); vf50_ts_probe()
348 error = vf50_ts_get_gpiod(dev, &touchdev->gpio_ym, "ym", GPIOD_OUT_LOW); vf50_ts_probe()
352 touchdev->pen_irq = platform_get_irq(pdev, 0); vf50_ts_probe()
353 if (touchdev->pen_irq < 0) vf50_ts_probe()
354 return touchdev->pen_irq; vf50_ts_probe()
356 error = devm_request_threaded_irq(dev, touchdev->pen_irq, vf50_ts_probe()
358 "vf50 touch", touchdev); vf50_ts_probe()
361 touchdev->pen_irq, error); vf50_ts_probe()

Completed in 199 milliseconds