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