Skip to content

Commit f4a2b19

Browse files
pdp7linusw
authored andcommitted
pinctrl: single: fix debug output when #pinctrl-cells = 2
The debug output in pcs_parse_one_pinctrl_entry() needs to be updated to print the correct pinctrl register value when #pinctrl-cells is 2. Fixes: a133954 ("pinctrl: single: parse #pinctrl-cells = 2") Reported-by: Trent Piepho <[email protected]> Signed-off-by: Drew Fustini <[email protected]> Acked-by: Tony Lindgren <[email protected]> Link: https://lore.kernel.org/linux-omap/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 9b9448f commit f4a2b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/pinctrl-single.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ static int pcs_parse_one_pinctrl_entry(struct pcs_device *pcs,
10331033
}
10341034

10351035
dev_dbg(pcs->dev, "%pOFn index: 0x%x value: 0x%x\n",
1036-
pinctrl_spec.np, offset, pinctrl_spec.args[1]);
1036+
pinctrl_spec.np, offset, vals[found].val);
10371037

10381038
pin = pcs_get_pin_by_offset(pcs, offset);
10391039
if (pin < 0) {

0 commit comments

Comments
 (0)