Skip to content

Commit d2755d3

Browse files
committed
Merge tag 'mvebu-arm-6.17-1' of https://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into soc/arm
mvebu arm for 6.17 (part 1) Use string choices helper in GPIO support code for legacy Orion based platforms. * tag 'mvebu-arm-6.17-1' of https://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu: arm: orion: use string choices helper Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents b586f28 + 90ec89d commit d2755d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arm/plat-orion/gpio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,14 +468,14 @@ static void orion_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
468468

469469
if (is_out) {
470470
seq_printf(s, " out %s %s\n",
471-
out & msk ? "hi" : "lo",
471+
str_hi_lo(out & msk),
472472
blink & msk ? "(blink )" : "");
473473
continue;
474474
}
475475

476476
seq_printf(s, " in %s (act %s) - IRQ",
477-
(data_in ^ in_pol) & msk ? "hi" : "lo",
478-
in_pol & msk ? "lo" : "hi");
477+
str_hi_lo((data_in ^ in_pol) & msk),
478+
str_lo_hi(in_pol & msk));
479479
if (!((edg_msk | lvl_msk) & msk)) {
480480
seq_puts(s, " disabled\n");
481481
continue;

0 commit comments

Comments
 (0)