Skip to content

Commit c518d31

Browse files
committed
pinctrl: baytrail: Use str_hi_lo() helper
Use str_hi_lo() helper instead of open coding the same. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent a9fc766 commit c518d31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pinctrl/intel/pinctrl-baytrail.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/pm_runtime.h>
1919
#include <linux/property.h>
2020
#include <linux/seq_file.h>
21+
#include <linux/string_helpers.h>
2122

2223
#include <linux/pinctrl/pinctrl.h>
2324
#include <linux/pinctrl/pinmux.h>
@@ -1305,7 +1306,7 @@ static void byt_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
13051306
label,
13061307
val & BYT_INPUT_EN ? " " : "in",
13071308
val & BYT_OUTPUT_EN ? " " : "out",
1308-
val & BYT_LEVEL ? "hi" : "lo",
1309+
str_hi_lo(val & BYT_LEVEL),
13091310
comm->pad_map[i], comm->pad_map[i] * 16,
13101311
conf0 & 0x7,
13111312
conf0 & BYT_TRIG_NEG ? " fall" : " ",

0 commit comments

Comments
 (0)