Lines Matching refs:pcspkr_dev
67 struct input_dev *pcspkr_dev; in pcspkr_probe() local
70 pcspkr_dev = input_allocate_device(); in pcspkr_probe()
71 if (!pcspkr_dev) in pcspkr_probe()
74 pcspkr_dev->name = "PC Speaker"; in pcspkr_probe()
75 pcspkr_dev->phys = "isa0061/input0"; in pcspkr_probe()
76 pcspkr_dev->id.bustype = BUS_ISA; in pcspkr_probe()
77 pcspkr_dev->id.vendor = 0x001f; in pcspkr_probe()
78 pcspkr_dev->id.product = 0x0001; in pcspkr_probe()
79 pcspkr_dev->id.version = 0x0100; in pcspkr_probe()
80 pcspkr_dev->dev.parent = &dev->dev; in pcspkr_probe()
82 pcspkr_dev->evbit[0] = BIT_MASK(EV_SND); in pcspkr_probe()
83 pcspkr_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in pcspkr_probe()
84 pcspkr_dev->event = pcspkr_event; in pcspkr_probe()
86 err = input_register_device(pcspkr_dev); in pcspkr_probe()
88 input_free_device(pcspkr_dev); in pcspkr_probe()
92 platform_set_drvdata(dev, pcspkr_dev); in pcspkr_probe()
99 struct input_dev *pcspkr_dev = platform_get_drvdata(dev); in pcspkr_remove() local
101 input_unregister_device(pcspkr_dev); in pcspkr_remove()