diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-10-17 19:15:06 +0200 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-06-12 19:14:22 +0200 |
commit | c518d31b2a3390e059c7bda1c1ce429c83ee8517 (patch) | |
tree | a2f462fb8a0e7bbd8ccd552f91b5aef960deeff1 | |
parent | lib/string_choices: Add str_high_low() helper (diff) | |
download | linux-c518d31b2a3390e059c7bda1c1ce429c83ee8517.tar.xz linux-c518d31b2a3390e059c7bda1c1ce429c83ee8517.zip |
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>
-rw-r--r-- | drivers/pinctrl/intel/pinctrl-baytrail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-baytrail.c b/drivers/pinctrl/intel/pinctrl-baytrail.c index 4e336b7f4005..d53952f5c87c 100644 --- a/drivers/pinctrl/intel/pinctrl-baytrail.c +++ b/drivers/pinctrl/intel/pinctrl-baytrail.c @@ -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" : " ", |