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

/linux-4.1.27/drivers/input/misc/
H A Dwm831x-on.c30 struct wm831x_on { struct
42 struct wm831x_on *wm831x_on = container_of(work, struct wm831x_on, wm831x_poll_on() local
44 struct wm831x *wm831x = wm831x_on->wm831x; wm831x_poll_on()
51 input_report_key(wm831x_on->dev, KEY_POWER, poll); wm831x_poll_on()
52 input_sync(wm831x_on->dev); wm831x_poll_on()
59 schedule_delayed_work(&wm831x_on->work, 100); wm831x_poll_on()
64 struct wm831x_on *wm831x_on = data; wm831x_on_irq() local
66 schedule_delayed_work(&wm831x_on->work, 0); wm831x_on_irq()
74 struct wm831x_on *wm831x_on; wm831x_on_probe() local
78 wm831x_on = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_on), wm831x_on_probe()
80 if (!wm831x_on) { wm831x_on_probe()
85 wm831x_on->wm831x = wm831x; wm831x_on_probe()
86 INIT_DELAYED_WORK(&wm831x_on->work, wm831x_poll_on); wm831x_on_probe()
88 wm831x_on->dev = devm_input_allocate_device(&pdev->dev); wm831x_on_probe()
89 if (!wm831x_on->dev) { wm831x_on_probe()
95 wm831x_on->dev->evbit[0] = BIT_MASK(EV_KEY); wm831x_on_probe()
96 wm831x_on->dev->keybit[BIT_WORD(KEY_POWER)] = BIT_MASK(KEY_POWER); wm831x_on_probe()
97 wm831x_on->dev->name = "wm831x_on"; wm831x_on_probe()
98 wm831x_on->dev->phys = "wm831x_on/input0"; wm831x_on_probe()
99 wm831x_on->dev->dev.parent = &pdev->dev; wm831x_on_probe()
102 IRQF_TRIGGER_RISING, "wm831x_on", wm831x_on_probe()
103 wm831x_on); wm831x_on_probe()
108 ret = input_register_device(wm831x_on->dev); wm831x_on_probe()
114 platform_set_drvdata(pdev, wm831x_on); wm831x_on_probe()
119 free_irq(irq, wm831x_on); wm831x_on_probe()
127 struct wm831x_on *wm831x_on = platform_get_drvdata(pdev); wm831x_on_remove() local
130 free_irq(irq, wm831x_on); wm831x_on_remove()
131 cancel_delayed_work_sync(&wm831x_on->work); wm831x_on_remove()

Completed in 56 milliseconds