Set GPIOKPF_DEBOUNCE, just in case
[ms2-fixes] / debounce.c
index ec20fdb..7489f8c 100644 (file)
@@ -37,10 +37,15 @@ static int __init debounce_init(void)
        printk(KERN_INFO "settle_time: %u\n", gpio_evmi->settle_time.tv.nsec);
        printk(KERN_INFO "poll_time: %u\n", gpio_evmi->poll_time.tv.nsec);
        printk(KERN_INFO "debounce_delay: %u\n", gpio_evmi->debounce_delay.tv.nsec);
+       printk(KERN_INFO "flags: %x\n", gpio_evmi->flags);
        if (!gpio_evmi->debounce_delay.tv.nsec) {
                printk(KERN_INFO "Activating debounce!\n");
                gpio_evmi->debounce_delay.tv.nsec = 5 * NSEC_PER_MSEC;
+
+               /* GPIOKPF_DEBOUNCE should already be set by GPIOKPF_REMOVE_PHANTOM_KEYS */
+               gpio_evmi->flags |= GPIOKPF_DEBOUNCE;
                printk(KERN_INFO "debounce_delay: %u\n", gpio_evmi->debounce_delay.tv.nsec);
+               printk(KERN_INFO "flags: %x\n", gpio_evmi->flags);
        }
 
        return 0;
Impressum, Datenschutz