Skip to content

Commit c085ddf

Browse files
morimotoRussell King (Oracle)
authored andcommitted
ARM: 9451/1: mm: l2x0: use string choices helper
We can use string choices helper, let's use it. It updates format - ..."%sabled", ...? "en" : "dis", + ..."%s", ... str_enabled_disabled(...) ^^^^^ Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 8f5ae30 commit c085ddf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

arch/arm/mm/cache-l2x0.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/io.h>
1414
#include <linux/of.h>
1515
#include <linux/of_address.h>
16+
#include <linux/string_choices.h>
1617

1718
#include <asm/cacheflush.h>
1819
#include <asm/cp15.h>
@@ -667,9 +668,9 @@ static void __init l2c310_enable(void __iomem *base, unsigned num_lock)
667668
u32 power_ctrl;
668669

669670
power_ctrl = readl_relaxed(base + L310_POWER_CTRL);
670-
pr_info("L2C-310 dynamic clock gating %sabled, standby mode %sabled\n",
671-
power_ctrl & L310_DYNAMIC_CLK_GATING_EN ? "en" : "dis",
672-
power_ctrl & L310_STNDBY_MODE_EN ? "en" : "dis");
671+
pr_info("L2C-310 dynamic clock gating %s, standby mode %s\n",
672+
str_enabled_disabled(power_ctrl & L310_DYNAMIC_CLK_GATING_EN),
673+
str_enabled_disabled(power_ctrl & L310_STNDBY_MODE_EN));
673674
}
674675

675676
if (aux & L310_AUX_CTRL_FULL_LINE_ZERO)

0 commit comments

Comments
 (0)