Re: [PATCH] pinctrl: pinctrl-rp1: Make use of str_hi_lo helper
From: Andrea della Porta
Date: Mon Jul 06 2026 - 08:23:19 EST
Hi Alex,
On 09:01 Sun 05 Jul , Alex Tran wrote:
> 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@xxxxxxxxx>
> ---
> drivers/pinctrl/pinctrl-rp1.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/pinctrl-rp1.c b/drivers/pinctrl/pinctrl-rp1.c
> index fc4ed68ea5ac0bd272afe82076a36e93beba0539..dd0e85c2ca33a1ac506bf7ff0ceb424a7bde97d9 100644
> --- a/drivers/pinctrl/pinctrl-rp1.c
> +++ b/drivers/pinctrl/pinctrl-rp1.c
> @@ -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]);
> }
>
>
> ---
> base-commit: 2b763db0c2763d6bf73d7d3e69665222d1f377cf
> change-id: 20260704-rp1-str-hi-lo-cc64c3614be2
>
> Best regards,
> --
> Alex Tran <alex.t.tran@xxxxxxxxx>
>
Thanks for your submission!
Reviewed-by: Andrea della Porta <andrea.porta@xxxxxxxx>