clk: mvebu: ap80x-cpu: use semicolons rather than commas to separate statements
authorJulia Lawall <Julia.Lawall@inria.fr>
Sun, 27 Sep 2020 19:12:19 +0000 (21:12 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 14 Oct 2020 00:43:05 +0000 (17:43 -0700)
Replace commas with semicolons.  What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):

// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Link: https://lore.kernel.org/r/1601233948-11629-10-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mvebu/ap-cpu-clk.c

index 6b394302c76a30bb0ec61ffd0456e66d30b2d510..b4259b60dcfd67b486beb3a3f630c0c2e4025df0 100644 (file)
@@ -197,7 +197,7 @@ static int ap_cpu_clk_set_rate(struct clk_hw *hw, unsigned long rate,
 
        stable_bit = BIT(clk->pll_regs->ratio_state_offset +
                         clk->cluster *
-                        clk->pll_regs->ratio_state_cluster_offset),
+                        clk->pll_regs->ratio_state_cluster_offset);
        ret = regmap_read_poll_timeout(clk->pll_cr_base,
                                       clk->pll_regs->ratio_state_reg, reg,
                                       reg & stable_bit, STATUS_POLL_PERIOD_US,