diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-06-05 18:45:23 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-06-06 16:08:20 +0300 |
commit | 7e521093113b3920aff2f932221c87b6e910f33a (patch) | |
tree | c0c48d12d684c4e398c57b00fbf5fd592bb7e0d2 /drivers/pinctrl/intel | |
parent | be5bb8f08205b5af9c44dccc9567584f572e2264 (diff) | |
download | linux-stable-7e521093113b3920aff2f932221c87b6e910f33a.tar.gz linux-stable-7e521093113b3920aff2f932221c87b6e910f33a.tar.bz2 linux-stable-7e521093113b3920aff2f932221c87b6e910f33a.zip |
pinctrl: moorefield: Use BUFCFG_PINMODE_GPIO in ->pin_dbg_show()
Use explicit comparison to BUFCFG_PINMODE_GPIO instead of implying it.
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/pinctrl/intel')
-rw-r--r-- | drivers/pinctrl/intel/pinctrl-moorefield.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-moorefield.c b/drivers/pinctrl/intel/pinctrl-moorefield.c index 7656a5e20919..2d38d953f360 100644 --- a/drivers/pinctrl/intel/pinctrl-moorefield.c +++ b/drivers/pinctrl/intel/pinctrl-moorefield.c @@ -504,7 +504,7 @@ static void mofld_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, } mode = (value & BUFCFG_PINMODE_MASK) >> BUFCFG_PINMODE_SHIFT; - if (!mode) + if (mode == BUFCFG_PINMODE_GPIO) seq_puts(s, "GPIO "); else seq_printf(s, "mode %d ", mode); |