ARM: orion/gpio: Use str_hi_lo() and str_lo_hi() helpers
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.
Signed-off-by Thorsten Blum <[email protected]>
--- arch/arm/plat-orion/gpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/plat-orion/gpio.c +3 -3
@@ -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
Russell King (Oracle)
maintainerQuoted 2 lines · Thorsten Blum
Remove hard-coded strings by using the
str_hi_lo()andstr_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!