Skip to contentSkip to conversation

ARM: orion/gpio: Use str_hi_lo() and str_lo_hi() helpers

PATCH In review Thorsten Blum 2 participants 2 messages Dec 26, 2024 – Jan 2, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: orion/gpio: Use str_hi_lo() and str_lo_hi() helpers

Remove hard-coded strings by using the str_hi_lo() and str_lo_hi() helper functions.

---
 arch/arm/plat-orion/gpio.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/plat-orion/gpio.c +3 -3
index 595e9cb33c1d..31cc42345b82 100644
@@ -466,14 +466,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;
Signature · 1 line
2.47.1
#1 lore raw
Quoted 2 lines · Thorsten Blum

Remove hard-coded strings by using the str_hi_lo() and str_lo_hi() helper functions.

This description is missing the reason why its desirable to make this change.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!