Lines Matching defs:input
19 #include <linux/input.h>
35 struct input_dev *input;
45 struct input_dev *input;
90 struct input_dev *input = chip->input;
111 input_event(input, type, button->code, !!state);
112 input_sync(input);
178 /* ensure that keypad pins are set to input */
202 struct input_dev *input;
220 input = input_allocate_device();
221 if (!chip || !input) {
227 chip->input = input;
234 input->phys = "tca6416-keys/input0";
235 input->name = client->name;
236 input->dev.parent = &client->dev;
238 input->open = tca6416_keys_open;
239 input->close = tca6416_keys_close;
241 input->id.bustype = BUS_HOST;
242 input->id.vendor = 0x0001;
243 input->id.product = 0x0001;
244 input->id.version = 0x0100;
246 /* Enable auto repeat feature of Linux input subsystem */
248 __set_bit(EV_REP, input->evbit);
255 input_set_capability(input, type, pdata->buttons[i].code);
258 input_set_drvdata(input, chip);
288 error = input_register_device(input);
291 "Unable to register input device, error: %d\n", error);
306 input_free_device(input);
320 input_unregister_device(chip->input);