Lines Matching defs:input
2 * Generic implementation of a polled input device
13 #include <linux/input-polldev.h>
16 MODULE_DESCRIPTION("Generic implementation of a polled input device");
35 printk(KERN_ERR "input-polldev: failed to create "
69 static int input_open_polled_device(struct input_dev *input)
71 struct input_polled_dev *dev = input->private;
87 static void input_close_polled_device(struct input_dev *input)
89 struct input_polled_dev *dev = input->private;
99 * for an input device associated with this polled device.
109 dev->input = input_allocate_device();
110 if (!dev->input) {
124 * reference to the associated input device (if present).
129 input_free_device(dev->input);
139 * The function registers previously initialized polled input device
140 * with input layer. The device should be allocated with call to
147 struct input_dev *input = dev->input;
152 input->private = dev;
153 input->open = input_open_polled_device;
154 input->close = input_close_polled_device;
156 return input_register_device(input);
164 * The function unregisters previously registered polled input
165 * device from input layer. Polling is stopped and device is
167 * Callers should not attempt to access dev->input pointer
172 input_unregister_device(dev->input);
173 dev->input = NULL;