Skip to contentSkip to conversation

pinctrl: imx: Fix pin name in debug message.

PATCH New Martin Fuzzey 2 participants 2 messages Feb 20, 2014 – Feb 25, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: imx: Fix pin name in debug message.

The wrong index counter was being used, causing the debug message to show an incorrect pin name.

---
 drivers/pinctrl/pinctrl-imx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-imx.c +1 -1
index 4779b8e..e118fb1 100644
@@ -491,7 +491,7 @@ static int imx_pinctrl_parse_groups(struct device_node *np,
 			pin->mux_mode |= IOMUXC_CONFIG_SION;
 		pin->config = config & ~IMX_PAD_SION;
 
-		dev_dbg(info->dev, "%s: %d 0x%08lx", info->pins[i].name,
+		dev_dbg(info->dev, "%s: %d 0x%08lx", info->pins[pin_id].name,
 				pin->mux_mode, pin->config);
 	}
 
#1 lore raw

PATCH 1/1 pinctrl: imx: Fix pin name in debug message.

Quoted 4 lines · Martin Fuzzey

The wrong index counter was being used, causing the debug message to show an incorrect pin name.

Patch applied, unless the i.MX maintainers have objections.

Yours,
Linus Walleij