Lines Matching refs:input
8 #include <linux/input.h>
22 * pin is also used for uart input as alternate function, the
49 static void rb532_button_poll(struct input_dev *input)
51 input_report_key(input, RB532_BTN_KSYM, rb532_button_pressed());
52 input_sync(input);
57 struct input_dev *input;
60 input = devm_input_allocate_device(&pdev->dev);
61 if (!input)
64 input->name = "rb532 button";
65 input->phys = "rb532/button0";
66 input->id.bustype = BUS_HOST;
68 input_set_capability(input, EV_KEY, RB532_BTN_KSYM);
70 error = input_setup_polling(input, rb532_button_poll);
74 input_set_poll_interval(input, RB532_BTN_RATE);
76 error = input_register_device(input);