8 #include <linux/module.h>
14 #define DRV_NAME "rb532-button"
16 #define RB532_BTN_RATE 100
17 #define RB532_BTN_KSYM BTN_0
32 static bool rb532_button_pressed(
void)
47 static void rb532_button_poll(
struct input_polled_dev *poll_dev)
50 rb532_button_pressed());
51 input_sync(poll_dev->input);
56 struct input_polled_dev *poll_dev;
63 poll_dev->poll = rb532_button_poll;
66 poll_dev->input->name =
"rb532 button";
67 poll_dev->input->phys =
"rb532/button0";
68 poll_dev->input->id.bustype =
BUS_HOST;
69 poll_dev->input->dev.parent = &pdev->
dev;
96 .probe = rb532_button_probe,