Lines Matching refs:pcspkr_dev
68 struct input_dev *pcspkr_dev; in pcspkr_probe() local
71 pcspkr_dev = input_allocate_device(); in pcspkr_probe()
72 if (!pcspkr_dev) in pcspkr_probe()
75 pcspkr_dev->name = "PC Speaker"; in pcspkr_probe()
76 pcspkr_dev->phys = "isa0061/input0"; in pcspkr_probe()
77 pcspkr_dev->id.bustype = BUS_ISA; in pcspkr_probe()
78 pcspkr_dev->id.vendor = 0x001f; in pcspkr_probe()
79 pcspkr_dev->id.product = 0x0001; in pcspkr_probe()
80 pcspkr_dev->id.version = 0x0100; in pcspkr_probe()
81 pcspkr_dev->dev.parent = &dev->dev; in pcspkr_probe()
83 pcspkr_dev->evbit[0] = BIT_MASK(EV_SND); in pcspkr_probe()
84 pcspkr_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in pcspkr_probe()
85 pcspkr_dev->event = pcspkr_event; in pcspkr_probe()
87 err = input_register_device(pcspkr_dev); in pcspkr_probe()
89 input_free_device(pcspkr_dev); in pcspkr_probe()
93 platform_set_drvdata(dev, pcspkr_dev); in pcspkr_probe()
100 struct input_dev *pcspkr_dev = platform_get_drvdata(dev); in pcspkr_remove() local
102 input_unregister_device(pcspkr_dev); in pcspkr_remove()