]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: usbduxfast: rename CamelCase 'minSamplPer'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:40:45 +0000 (13:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:30 +0000 (16:24 -0700)
Rename the local variable to fix the checkpatch.pl warning.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxfast.c

index 7ca4fae3c01b02be4aeac4e4d7eb2f14f463ba4c..7702a3ec4c562650d10bed31dcf6a340c3e87958 100644 (file)
@@ -354,7 +354,7 @@ static int usbduxfast_ai_cmdtest(struct comedi_device *dev,
 {
        int err = 0;
        long int steps, tmp;
-       int minSamplPer;
+       int min_sample_period;
 
        /* Step 1 : check if triggers are trivially valid */
 
@@ -396,14 +396,14 @@ static int usbduxfast_ai_cmdtest(struct comedi_device *dev,
        err |= cfc_check_trigger_arg_is(&cmd->scan_end_arg, cmd->chanlist_len);
 
        if (cmd->chanlist_len == 1)
-               minSamplPer = 1;
+               min_sample_period = 1;
        else
-               minSamplPer = MIN_SAMPLING_PERIOD;
+               min_sample_period = MIN_SAMPLING_PERIOD;
 
        if (cmd->convert_src == TRIG_TIMER) {
                steps = cmd->convert_arg * 30;
-               if (steps < (minSamplPer * 1000))
-                       steps = minSamplPer * 1000;
+               if (steps < (min_sample_period * 1000))
+                       steps = min_sample_period * 1000;
 
                if (steps > (MAX_SAMPLING_PERIOD * 1000))
                        steps = MAX_SAMPLING_PERIOD * 1000;