[PATCH v5 01/15] clk: renesas: r8a78000: Merge debug prints in r8a78000_clk_get()
Geert Uytterhoeven
geert+renesas at glider.be
Wed Nov 18 11:44:49 PST 2026
The two debug prints in r8a78000_clk_get() are very similar.
Merge them into a single debug print.
While at it, unwrap the (wrongly-indented) continuation of the
r8a78000_clk_get() function header, as it fits on a single line.
Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
---
v5:
- New.
---
drivers/clk/renesas/r8a78000-cpg.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/clk/renesas/r8a78000-cpg.c b/drivers/clk/renesas/r8a78000-cpg.c
index 6fee05a899f47bf4..0e11ae139fbffd80 100644
--- a/drivers/clk/renesas/r8a78000-cpg.c
+++ b/drivers/clk/renesas/r8a78000-cpg.c
@@ -62,8 +62,7 @@ static const struct clk_map *clk_map_find(const struct clk_map *map, u32 id)
return NULL;
}
-static struct clk_hw *r8a78000_clk_get(struct of_phandle_args *spec,
- void *data)
+static struct clk_hw *r8a78000_clk_get(struct of_phandle_args *spec, void *data)
{
struct r8a78000_cpg_priv *priv = data;
struct device *dev = priv->dev;
@@ -82,12 +81,10 @@ static struct clk_hw *r8a78000_clk_get(struct of_phandle_args *spec,
return ERR_PTR(-ENOENT);
}
- dev_dbg(dev, "Mapping DT clock %u to fixed clock %u\n", id, map->fw_id);
-
hw = priv->fixed_hws[map->fw_id];
- dev_dbg(dev, "clock %u is %s at %lu Hz\n", id, clk_hw_get_name(hw),
- clk_hw_get_rate(hw));
+ dev_dbg(dev, "Mapping DT clock %u to %s at %lu Hz\n", id,
+ clk_hw_get_name(hw), clk_hw_get_rate(hw));
return hw;
}
--
2.43.0
More information about the linux-arm-kernel
mailing list