mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02: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:
parent
81d79de72a
commit
3f0245e23a
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user