Commit 90ec89d6 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Gregory CLEMENT
Browse files

arm: orion: use string choices helper



We can use string choices helper, let's use it.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
parent 19272b37
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;