Lines Matching defs:dev
49 struct input_dev *dev;
57 dev = input_allocate_device();
58 if (!dev) {
64 set_bit(EV_KEY, dev->evbit);
65 set_bit(KEY_POWER, dev->keybit);
67 dev->name = "Power Button";
68 dev->id.bustype = BUS_HOST;
72 dev->id.product = 0x02;
73 dev->phys = "LNXPWRBN/button/input0";
81 dev->dev.parent = &button_pdev->dev;
82 ret = input_register_device(dev);
88 button_dev = dev;
101 input_free_device(dev);