mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 06:29:06 -04:00
pinctrl: pinctrl-rp1: Make use of str_hi_lo helper
Use the str_hi_lo helper API to print value of a pin for debugging instead of using ternary operator. Signed-off-by: Alex Tran <alex.t.tran@gmail.com> Reviewed-by: Andrea della Porta <andrea.porta@suse.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
@@ -1085,7 +1085,7 @@ static void rp1_pctl_pin_dbg_show(struct pinctrl_dev *pctldev,
|
||||
|
||||
seq_printf(s, "function %s (%s) in %s; irq %d (%s)",
|
||||
rp1_func_names[fsel].name, rp1_func_names[func].name,
|
||||
value ? "hi" : "lo",
|
||||
str_hi_lo(value),
|
||||
irq, irq_type_names[pin->irq_type]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user