]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm: orion: use string choices helper
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 4 Jul 2025 02:47:31 +0000 (02:47 +0000)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Mon, 7 Jul 2025 14:56:04 +0000 (16:56 +0200)
We can use string choices helper, let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/plat-orion/gpio.c

index ca1bd764cfa57eade2be552afab504b0f46bfd72..6f09f65e3d9585b918b87fb7d7b37e6458bbd630 100644 (file)
@@ -468,14 +468,14 @@ static void orion_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
 
                if (is_out) {
                        seq_printf(s, " out %s %s\n",
-                                  out & msk ? "hi" : "lo",
+                                  str_hi_lo(out & msk),
                                   blink & msk ? "(blink )" : "");
                        continue;
                }
 
                seq_printf(s, " in  %s (act %s) - IRQ",
-                          (data_in ^ in_pol) & msk  ? "hi" : "lo",
-                          in_pol & msk ? "lo" : "hi");
+                          str_hi_lo((data_in ^ in_pol) & msk),
+                          str_lo_hi(in_pol & msk));
                if (!((edg_msk | lvl_msk) & msk)) {
                        seq_puts(s, " disabled\n");
                        continue;