Skip to content

Commit 29cf9f3

Browse files
committed
pinctrl: merrifield: 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>
1 parent 9891422 commit 29cf9f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pinctrl/intel/pinctrl-merrifield.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ static void mrfld_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s,
549549
}
550550

551551
mode = (value & BUFCFG_PINMODE_MASK) >> BUFCFG_PINMODE_SHIFT;
552-
if (!mode)
552+
if (mode == BUFCFG_PINMODE_GPIO)
553553
seq_puts(s, "GPIO ");
554554
else
555555
seq_printf(s, "mode %d ", mode);

0 commit comments

Comments
 (0)