Lines Matching refs:input_dev
43 static int pcspkr_input_event(struct input_dev *dev, unsigned int type, in pcspkr_input_event()
76 int pcspkr_input_init(struct input_dev **rdev, struct device *dev) in pcspkr_input_init()
80 struct input_dev *input_dev = input_allocate_device(); in pcspkr_input_init() local
81 if (!input_dev) in pcspkr_input_init()
84 input_dev->name = "PC Speaker"; in pcspkr_input_init()
85 input_dev->phys = "isa0061/input0"; in pcspkr_input_init()
86 input_dev->id.bustype = BUS_ISA; in pcspkr_input_init()
87 input_dev->id.vendor = 0x001f; in pcspkr_input_init()
88 input_dev->id.product = 0x0001; in pcspkr_input_init()
89 input_dev->id.version = 0x0100; in pcspkr_input_init()
90 input_dev->dev.parent = dev; in pcspkr_input_init()
92 input_dev->evbit[0] = BIT(EV_SND); in pcspkr_input_init()
93 input_dev->sndbit[0] = BIT(SND_BELL) | BIT(SND_TONE); in pcspkr_input_init()
94 input_dev->event = pcspkr_input_event; in pcspkr_input_init()
96 err = input_register_device(input_dev); in pcspkr_input_init()
98 input_free_device(input_dev); in pcspkr_input_init()
102 *rdev = input_dev; in pcspkr_input_init()
106 int pcspkr_input_remove(struct input_dev *dev) in pcspkr_input_remove()