+ gpio_e = platform_get_drvdata(pdev);
+ printk(KERN_INFO PREFIX "Number of states: %d\n", gpio_e->info->info_count);
+
+ /* Search for correct gpio_event state */
+ for (i = 0; i < gpio_e->info->info_count; i++) {
+ if (gpio_e->info->info[i]->func == gpio_ei->func) {
+ printk(KERN_INFO PREFIX "Keypad state: %d\n", i);
+ gpio_kp_state = gpio_e->state[i];
+ }
+ }
+
+ if (!gpio_kp_state) {
+ printk(KERN_ERR PREFIX "Can't determine correct keypad state!\n");
+ return -ENODEV;
+ }
+
+ printk(KERN_INFO PREFIX "kp_use_irq: %d\n", gpio_kp_state->use_irq);
+#if 0
+ gpio_kp_state->use_irq=0;
+ hrtimer_start(&(gpio_kp_state->timer), gpio_evmi->poll_time, HRTIMER_MODE_REL);
+ printk(KERN_INFO PREFIX "kp_use_irq: %d\n", gpio_kp_state->use_irq);
+#endif
+