Skip to content

Commit e6c2b4e

Browse files
prabhakarladgeertu
authored andcommitted
clk: renesas: rzv2h: Use str_on_off() helper in rzv2h_mod_clock_endisable()
Replace hard-coded "ON"/"OFF" strings with the `str_on_off()` helper in `rzv2h_mod_clock_endisable()`. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20250407165202.197570-5-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 52239eb commit e6c2b4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/renesas/rzv2h-cpg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/pm_domain.h>
2626
#include <linux/refcount.h>
2727
#include <linux/reset-controller.h>
28+
#include <linux/string_choices.h>
2829

2930
#include <dt-bindings/clock/renesas-cpg-mssr.h>
3031

@@ -592,7 +593,7 @@ static int rzv2h_mod_clock_endisable(struct clk_hw *hw, bool enable)
592593
int error;
593594

594595
dev_dbg(dev, "CLK_ON 0x%x/%pC %s\n", reg, hw->clk,
595-
enable ? "ON" : "OFF");
596+
str_on_off(enable));
596597

597598
if (enabled == enable)
598599
return 0;

0 commit comments

Comments
 (0)