]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: renesas: Drop core param from gen3_clk_get_rate64_pll_mul_reg
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 26 Jan 2023 20:02:05 +0000 (21:02 +0100)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 2 Feb 2023 00:49:20 +0000 (01:49 +0100)
Drop 'core' parameter from gen3_clk_get_rate64_pll_mul_reg() function
as it is only used in debug print. No functional change except for the
debug print, which is disabled by default.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/clk/renesas/clk-rcar-gen3.c

index 812580475c6ce5a09291a541a31fa2409b147b50..dd61fe0c7cd9fe1dd2e1e44524a9eb6dc4da9f12 100644 (file)
@@ -160,7 +160,6 @@ static u64 gen3_clk_get_rate64(struct clk *clk);
 
 static u64 gen3_clk_get_rate64_pll_mul_reg(struct gen3_clk_priv *priv,
                                           struct clk *parent,
-                                          const struct cpg_core_clk *core,
                                           u32 mul_reg, u32 mult, u32 div,
                                           char *name)
 {
@@ -175,8 +174,8 @@ static u64 gen3_clk_get_rate64_pll_mul_reg(struct gen3_clk_priv *priv,
 
        rate = (gen3_clk_get_rate64(parent) * mult) / div;
 
-       debug("%s[%i] %s clk: parent=%i mult=%u div=%u => rate=%llu\n",
-             __func__, __LINE__, name, core->parent, mult, div, rate);
+       debug("%s[%i] %s clk: mult=%u div=%u => rate=%llu\n",
+             __func__, __LINE__, name, mult, div, rate);
        return rate;
 }
 
@@ -230,56 +229,56 @@ static u64 gen3_clk_get_rate64(struct clk *clk)
                return -EINVAL;
 
        case CLK_TYPE_GEN3_MAIN:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                0, 1, pll_config->extal_div,
                                                "MAIN");
 
        case CLK_TYPE_GEN3_PLL0:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                CPG_PLL0CR, 0, 0, "PLL0");
 
        case CLK_TYPE_GEN3_PLL1:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                0, pll_config->pll1_mult,
                                                pll_config->pll1_div, "PLL1");
 
        case CLK_TYPE_GEN3_PLL2:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                CPG_PLL2CR, 0, 0, "PLL2");
 
        case CLK_TYPE_GEN3_PLL3:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                0, pll_config->pll3_mult,
                                                pll_config->pll3_div, "PLL3");
 
        case CLK_TYPE_GEN3_PLL4:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                CPG_PLL4CR, 0, 0, "PLL4");
 
        case CLK_TYPE_GEN4_MAIN:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                0, 1, pll_config->extal_div,
                                                "V3U_MAIN");
 
        case CLK_TYPE_GEN4_PLL1:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                0, pll_config->pll1_mult,
                                                pll_config->pll1_div,
                                                "V3U_PLL1");
 
        case CLK_TYPE_GEN4_PLL2X_3X:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                core->offset, 0, 0,
                                                "V3U_PLL2X_3X");
 
        case CLK_TYPE_GEN4_PLL5:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                0, pll_config->pll5_mult,
                                                pll_config->pll5_div,
                                                "V3U_PLL5");
 
        case CLK_TYPE_FF:
-               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent, core,
+               return gen3_clk_get_rate64_pll_mul_reg(priv, &parent,
                                                0, core->mult, core->div,
                                                "FIXED");