Lines Matching refs:input
7 * This file was based on: /drivers/input/misc/cobalt_btns.c
10 * also was based on: /drivers/input/keyboard/gpio_keys.c
23 #include <linux/input.h>
24 #include <linux/input-polldev.h>
44 static void gpio_buttons_check_state(struct input_dev *input,
58 input_event(input, type, button->code,
60 input_sync(input);
70 struct input_dev *input = dev->input;
80 gpio_buttons_check_state(input, button, bdata);
91 struct input_dev *input;
119 input = poll_dev->input;
121 input->evbit[0] = BIT(EV_KEY);
122 input->name = pdev->name;
123 input->phys = "gpio-buttons/input0";
124 input->dev.parent = &pdev->dev;
126 input->id.bustype = BUS_HOST;
127 input->id.vendor = 0x0001;
128 input->id.product = 0x0001;
129 input->id.version = 0x0100;
155 input_set_capability(input, type, button->code);
171 gpio_buttons_check_state(input, &pdata->buttons[i],