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