Commit 68556ffc authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_mio_common: remove 'fudge_factor_80_to_20Mhz'

For aesthetics, remove this local variable to fix the checkpatch.pl issue:
CHECK: Avoid CamelCase: <fudge_factor_80_to_20Mhz>
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8a5b817f
...@@ -4831,7 +4831,6 @@ static int ni_mseries_get_pll_parameters(unsigned int reference_period_ns, ...@@ -4831,7 +4831,6 @@ static int ni_mseries_get_pll_parameters(unsigned int reference_period_ns,
* divided by 4 to 20 MHz for most timing clocks * divided by 4 to 20 MHz for most timing clocks
*/ */
static const unsigned int target_picosec = 12500; static const unsigned int target_picosec = 12500;
static const unsigned int fudge_factor_80_to_20Mhz = 4;
int best_period_picosec = 0; int best_period_picosec = 0;
for (div = 1; div <= NI_M_PLL_MAX_DIVISOR; ++div) { for (div = 1; div <= NI_M_PLL_MAX_DIVISOR; ++div) {
...@@ -4851,8 +4850,8 @@ static int ni_mseries_get_pll_parameters(unsigned int reference_period_ns, ...@@ -4851,8 +4850,8 @@ static int ni_mseries_get_pll_parameters(unsigned int reference_period_ns,
*freq_divider = best_div; *freq_divider = best_div;
*freq_multiplier = best_mult; *freq_multiplier = best_mult;
*actual_period_ns = DIV_ROUND_CLOSEST(best_period_picosec * /* return the actual period (* fudge factor for 80 to 20 MHz) */
fudge_factor_80_to_20Mhz, *actual_period_ns = DIV_ROUND_CLOSEST(best_period_picosec * 4,
pico_per_nano); pico_per_nano);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment