pinctrl: baytrail: Use str_hi_lo() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 Oct 2022 17:15:06 +0000 (20:15 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Jun 2023 17:14:22 +0000 (20:14 +0300)
Use str_hi_lo() helper instead of open coding the same.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-baytrail.c

index 4e336b7..d53952f 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/pm_runtime.h>
 #include <linux/property.h>
 #include <linux/seq_file.h>
+#include <linux/string_helpers.h>
 
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
@@ -1305,7 +1306,7 @@ static void byt_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
                           label,
                           val & BYT_INPUT_EN ? "  " : "in",
                           val & BYT_OUTPUT_EN ? "   " : "out",
-                          val & BYT_LEVEL ? "hi" : "lo",
+                          str_hi_lo(val & BYT_LEVEL),
                           comm->pad_map[i], comm->pad_map[i] * 16,
                           conf0 & 0x7,
                           conf0 & BYT_TRIG_NEG ? " fall" : "     ",