Lines Matching refs:input_dev
43 static int pcspkr_input_event(struct input_dev *dev, unsigned int type, in pcspkr_input_event()
77 int pcspkr_input_init(struct input_dev **rdev, struct device *dev) in pcspkr_input_init()
81 struct input_dev *input_dev = devm_input_allocate_device(dev); in pcspkr_input_init() local
82 if (!input_dev) in pcspkr_input_init()
85 input_dev->name = "PC Speaker"; in pcspkr_input_init()
86 input_dev->phys = "isa0061/input0"; in pcspkr_input_init()
87 input_dev->id.bustype = BUS_ISA; in pcspkr_input_init()
88 input_dev->id.vendor = 0x001f; in pcspkr_input_init()
89 input_dev->id.product = 0x0001; in pcspkr_input_init()
90 input_dev->id.version = 0x0100; in pcspkr_input_init()
91 input_dev->dev.parent = dev; in pcspkr_input_init()
93 input_dev->evbit[0] = BIT(EV_SND); in pcspkr_input_init()
94 input_dev->sndbit[0] = BIT(SND_BELL) | BIT(SND_TONE); in pcspkr_input_init()
95 input_dev->event = pcspkr_input_event; in pcspkr_input_init()
97 err = input_register_device(input_dev); in pcspkr_input_init()
101 *rdev = input_dev; in pcspkr_input_init()