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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent be5bb8f commit 7e52109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)