+ old_flags = gpio_evmi->flags;
+
+ if (gpio_evmi->debounce_delay.tv.nsec != 0) {
+ /* GPIOKPF_DEBOUNCE should already be set by GPIOKPF_REMOVE_PHANTOM_KEYS */
+ if (!(gpio_evmi->flags & GPIOKPF_DEBOUNCE)) {
+ printk(KERN_INFO PREFIX "Activating debounce\n");
+ gpio_evmi->flags |= GPIOKPF_DEBOUNCE;
+ }
+ } else {
+ /* Deactivating GPIOKPF_DEBOUNCE */
+ printk(KERN_INFO PREFIX "Deactivating debounce\n");
+ gpio_evmi->flags &= ~GPIOKPF_DEBOUNCE;
+ }
+ printk(KERN_INFO PREFIX "flags: 0x%x\n", gpio_evmi->flags);
+