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>
This commit is contained in:
parent
a9fc76645c
commit
c518d31b2a
@ -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" : " ",
|
||||
|
Loading…
x
Reference in New Issue
Block a user