Lines Matching refs:pmu_input_dev
28 static struct input_dev *pmu_input_dev; variable
38 pmu_input_dev = input_allocate_device(); in via_pmu_event_init()
39 if (!pmu_input_dev) in via_pmu_event_init()
42 pmu_input_dev->name = "PMU"; in via_pmu_event_init()
43 pmu_input_dev->id.bustype = BUS_HOST; in via_pmu_event_init()
44 pmu_input_dev->id.vendor = 0x0001; in via_pmu_event_init()
45 pmu_input_dev->id.product = 0x0001; in via_pmu_event_init()
46 pmu_input_dev->id.version = 0x0100; in via_pmu_event_init()
48 set_bit(EV_KEY, pmu_input_dev->evbit); in via_pmu_event_init()
49 set_bit(EV_SW, pmu_input_dev->evbit); in via_pmu_event_init()
50 set_bit(KEY_POWER, pmu_input_dev->keybit); in via_pmu_event_init()
51 set_bit(SW_LID, pmu_input_dev->swbit); in via_pmu_event_init()
53 err = input_register_device(pmu_input_dev); in via_pmu_event_init()
55 input_free_device(pmu_input_dev); in via_pmu_event_init()
62 if (unlikely(!pmu_input_dev)) in via_pmu_event()
67 input_report_key(pmu_input_dev, KEY_POWER, down); in via_pmu_event()
70 input_report_switch(pmu_input_dev, SW_LID, down); in via_pmu_event()
77 input_sync(pmu_input_dev); in via_pmu_event()