]> cvs.zerfleddert.de Git - ms2-fixes/commitdiff
rename module parameter to debounce_delay
authorMichael Gernoth <michael@gernoth.net>
Fri, 20 May 2011 21:42:43 +0000 (23:42 +0200)
committerMichael Gernoth <michael@gernoth.net>
Fri, 20 May 2011 21:42:43 +0000 (23:42 +0200)
debounce.c

index 9ae93f2283ed75259d37275d3013395d02947426..845adad4cd2d174ac0d3f609f0898f0f05e4ee1f 100644 (file)
@@ -5,10 +5,10 @@
 
 #define PREFIX "debounce: "
 
-static int delay = 10;
+static int debounce_delay = 10;
 
-module_param(delay, int, S_IRUSR | S_IRGRP | S_IROTH);
-MODULE_PARM_DESC(delay, "debouncing delay (ms), default: 10");
+module_param(debounce_delay, int, S_IRUSR | S_IRGRP | S_IROTH);
+MODULE_PARM_DESC(debounce_delay, "debouncing delay (ms), default: 10");
 
 static int find_ms2_dev(struct device *dev, void *data)
 {
@@ -53,9 +53,9 @@ static int __init debounce_init(void)
                printk(KERN_INFO PREFIX "flags: 0x%x\n", gpio_evmi->flags);
        }
 
-       if (gpio_evmi->debounce_delay.tv.nsec != delay * NSEC_PER_MSEC) {
+       if (gpio_evmi->debounce_delay.tv.nsec != debounce_delay * NSEC_PER_MSEC) {
                printk(KERN_INFO PREFIX "Changing debounce_delay\n");
-               gpio_evmi->debounce_delay.tv.nsec = delay * NSEC_PER_MSEC;
+               gpio_evmi->debounce_delay.tv.nsec = debounce_delay * NSEC_PER_MSEC;
                printk(KERN_INFO PREFIX "debounce_delay: %u\n", gpio_evmi->debounce_delay.tv.nsec);
        }
 
Impressum, Datenschutz