Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kuninori Morimoto and committed by
Russell King (Oracle)
c085ddfd 8f5ae30d

+4 -3
+4 -3
arch/arm/mm/cache-l2x0.c
··· 13 13 #include <linux/io.h> 14 14 #include <linux/of.h> 15 15 #include <linux/of_address.h> 16 + #include <linux/string_choices.h> 16 17 17 18 #include <asm/cacheflush.h> 18 19 #include <asm/cp15.h> ··· 668 667 u32 power_ctrl; 669 668 670 669 power_ctrl = readl_relaxed(base + L310_POWER_CTRL); 671 - pr_info("L2C-310 dynamic clock gating %sabled, standby mode %sabled\n", 672 - power_ctrl & L310_DYNAMIC_CLK_GATING_EN ? "en" : "dis", 673 - power_ctrl & L310_STNDBY_MODE_EN ? "en" : "dis"); 670 + pr_info("L2C-310 dynamic clock gating %s, standby mode %s\n", 671 + str_enabled_disabled(power_ctrl & L310_DYNAMIC_CLK_GATING_EN), 672 + str_enabled_disabled(power_ctrl & L310_STNDBY_MODE_EN)); 674 673 } 675 674 676 675 if (aux & L310_AUX_CTRL_FULL_LINE_ZERO)