]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm: omap2: use string choices helper
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 18 Jul 2025 01:52:01 +0000 (01:52 +0000)
committerKevin Hilman <khilman@baylibre.com>
Mon, 8 Sep 2025 21:30:49 +0000 (14:30 -0700)
We can use string choices helper, let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/87ikjq5kqm.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/mach-omap2/board-n8x0.c

index ff2a4a4d822047168008446e6c1835bd7358e789..969265d5d5c6ef0375c8a089e12ba66d9669fa99 100644 (file)
@@ -167,7 +167,7 @@ static int n8x0_mmc_set_power_menelaus(struct device *dev, int slot,
 
 #ifdef CONFIG_MMC_DEBUG
        dev_dbg(dev, "Set slot %d power: %s (vdd %d)\n", slot + 1,
-               power_on ? "on" : "off", vdd);
+               str_on_off(power_on), vdd);
 #endif
        if (slot == 0) {
                if (!power_on)