Skip to content

Commit 7e52109

Browse files
committed
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>
1 parent be5bb8f commit 7e52109

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pinctrl/intel/pinctrl-moorefield.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ static void mofld_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s,
504504
}
505505

506506
mode = (value & BUFCFG_PINMODE_MASK) >> BUFCFG_PINMODE_SHIFT;
507-
if (!mode)
507+
if (mode == BUFCFG_PINMODE_GPIO)
508508
seq_puts(s, "GPIO ");
509509
else
510510
seq_printf(s, "mode %d ", mode);

0 commit comments

Comments
 (0)