diff options
author | Thierry Reding <treding@nvidia.com> | 2015-11-18 14:04:20 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-11-18 15:54:11 +0100 |
commit | e52d7c04bb3911d4ce98bd237f69f5246d9c7083 (patch) | |
tree | fc1af5cb677bf3350fdd74e420082bdeb84a6040 /drivers/clk/tegra/clk-pll.c | |
parent | clk: tegra: Fix 26 MHz oscillator frequency (diff) | |
download | linux-e52d7c04bb3911d4ce98bd237f69f5246d9c7083.tar.xz linux-e52d7c04bb3911d4ce98bd237f69f5246d9c7083.zip |
clk: tegra: Miscellaneous coding style cleanups
Use unsigned int for loop variables that can never become negative and
remove a couple of gratuitous blank lines. Also use single spaces around
operators and use a single space instead of a tab to separate comments
from code.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/clk-pll.c')
-rw-r--r-- | drivers/clk/tegra/clk-pll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c index d6d4ecb88e94..c72340830521 100644 --- a/drivers/clk/tegra/clk-pll.c +++ b/drivers/clk/tegra/clk-pll.c @@ -439,7 +439,7 @@ static int _calc_rate(struct clk_hw *hw, struct tegra_clk_pll_freq_table *cfg, /* * PLL_P_OUT1 rate is not listed in PLLA table */ - cfreq = parent_rate/(parent_rate/1000000); + cfreq = parent_rate / (parent_rate / 1000000); break; default: pr_err("%s Unexpected reference rate %lu\n", @@ -936,8 +936,8 @@ static int _calc_dynamic_ramp_rate(struct clk_hw *hw, p_div = _p_div_to_hw(hw, p); if (p_div < 0) return p_div; - else - cfg->p = p_div; + + cfg->p = p_div; if (cfg->n > divn_max(pll) || cfg->output_rate > pll->params->vco_max) return -EINVAL; |