]> git.zerfleddert.de Git - ms2-fixes/commitdiff
only set hw_debounce_time when hw_debounce is active
authorMichael Gernoth <michael@gernoth.net>
Sun, 21 Aug 2011 13:52:43 +0000 (15:52 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 21 Aug 2011 13:52:43 +0000 (15:52 +0200)
MS2Debounce/assets/debounce.ko
debounce.c

index 12c2cfee26eeeee57a892196c37037ef5c790dba..fd7f4066d7fc02eaafc441ff23af8ec036747bc7 100644 (file)
Binary files a/MS2Debounce/assets/debounce.ko and b/MS2Debounce/assets/debounce.ko differ
index be78a44777d86a7a1b1900a06823755a6cdb6feb..45b01403fb1d31daef858cfa088578b808fc1ec9 100644 (file)
@@ -38,7 +38,7 @@ static void hw_debounce_set(int enable, int time) {
                        omap_set_gpio_debounce(gpio, enable);
                }
 
-               if (time != -1) {
+               if ((time != -1) && hw_debounce) {
                        printk(KERN_INFO PREFIX "Setting hardware debounce time for GPIO %d to %d (%dus)\n", gpio, time, (time+1)*31);
                        omap_set_gpio_debounce_time(gpio, time);
                }
Impressum, Datenschutz