Lines Matching refs:input_dev
25 static int m68kspkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in m68kspkr_event()
48 struct input_dev *input_dev; in m68kspkr_probe() local
51 input_dev = input_allocate_device(); in m68kspkr_probe()
52 if (!input_dev) in m68kspkr_probe()
55 input_dev->name = "m68k beeper"; in m68kspkr_probe()
56 input_dev->phys = "m68k/generic"; in m68kspkr_probe()
57 input_dev->id.bustype = BUS_HOST; in m68kspkr_probe()
58 input_dev->id.vendor = 0x001f; in m68kspkr_probe()
59 input_dev->id.product = 0x0001; in m68kspkr_probe()
60 input_dev->id.version = 0x0100; in m68kspkr_probe()
61 input_dev->dev.parent = &dev->dev; in m68kspkr_probe()
63 input_dev->evbit[0] = BIT_MASK(EV_SND); in m68kspkr_probe()
64 input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in m68kspkr_probe()
65 input_dev->event = m68kspkr_event; in m68kspkr_probe()
67 err = input_register_device(input_dev); in m68kspkr_probe()
69 input_free_device(input_dev); in m68kspkr_probe()
73 platform_set_drvdata(dev, input_dev); in m68kspkr_probe()
80 struct input_dev *input_dev = platform_get_drvdata(dev); in m68kspkr_remove() local
82 input_unregister_device(input_dev); in m68kspkr_remove()