wm831x_on 42 drivers/input/misc/wm831x-on.c struct wm831x_on *wm831x_on = container_of(work, struct wm831x_on, wm831x_on 44 drivers/input/misc/wm831x-on.c struct wm831x *wm831x = wm831x_on->wm831x; wm831x_on 51 drivers/input/misc/wm831x-on.c input_report_key(wm831x_on->dev, KEY_POWER, poll); wm831x_on 52 drivers/input/misc/wm831x-on.c input_sync(wm831x_on->dev); wm831x_on 59 drivers/input/misc/wm831x-on.c schedule_delayed_work(&wm831x_on->work, 100); wm831x_on 64 drivers/input/misc/wm831x-on.c struct wm831x_on *wm831x_on = data; wm831x_on 66 drivers/input/misc/wm831x-on.c schedule_delayed_work(&wm831x_on->work, 0); wm831x_on 74 drivers/input/misc/wm831x-on.c struct wm831x_on *wm831x_on; wm831x_on 78 drivers/input/misc/wm831x-on.c wm831x_on = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_on), wm831x_on 80 drivers/input/misc/wm831x-on.c if (!wm831x_on) { wm831x_on 85 drivers/input/misc/wm831x-on.c wm831x_on->wm831x = wm831x; wm831x_on 86 drivers/input/misc/wm831x-on.c INIT_DELAYED_WORK(&wm831x_on->work, wm831x_poll_on); wm831x_on 88 drivers/input/misc/wm831x-on.c wm831x_on->dev = devm_input_allocate_device(&pdev->dev); wm831x_on 89 drivers/input/misc/wm831x-on.c if (!wm831x_on->dev) { wm831x_on 95 drivers/input/misc/wm831x-on.c wm831x_on->dev->evbit[0] = BIT_MASK(EV_KEY); wm831x_on 96 drivers/input/misc/wm831x-on.c wm831x_on->dev->keybit[BIT_WORD(KEY_POWER)] = BIT_MASK(KEY_POWER); wm831x_on 97 drivers/input/misc/wm831x-on.c wm831x_on->dev->name = "wm831x_on"; wm831x_on 98 drivers/input/misc/wm831x-on.c wm831x_on->dev->phys = "wm831x_on/input0"; wm831x_on 99 drivers/input/misc/wm831x-on.c wm831x_on->dev->dev.parent = &pdev->dev; wm831x_on 104 drivers/input/misc/wm831x-on.c wm831x_on); wm831x_on 109 drivers/input/misc/wm831x-on.c ret = input_register_device(wm831x_on->dev); wm831x_on 115 drivers/input/misc/wm831x-on.c platform_set_drvdata(pdev, wm831x_on); wm831x_on 120 drivers/input/misc/wm831x-on.c free_irq(irq, wm831x_on); wm831x_on 128 drivers/input/misc/wm831x-on.c struct wm831x_on *wm831x_on = platform_get_drvdata(pdev); wm831x_on 131 drivers/input/misc/wm831x-on.c free_irq(irq, wm831x_on); wm831x_on 132 drivers/input/misc/wm831x-on.c cancel_delayed_work_sync(&wm831x_on->work);