pinctrl: pinctrl-imx: Print the mux_mode field in hex format
authorFabio Estevam <fabio.estevam@freescale.com>
Sun, 13 Apr 2014 15:09:05 +0000 (12:09 -0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Apr 2014 13:10:35 +0000 (15:10 +0200)
With debug enabled we get better readability dumps of the mux_mode register if
we use hexadecimal format instead:

imx6sl-pinctrl 20e0000.iomuxc: MX6SL_PAD_FEC_REF_CLK: 0x10 0x0001b0a8

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-imx.c

index e118fb121e024772cbad4cd4b73f32210ad0179c..a24448e5d3996ee81a490710545626be8c83f0a2 100644 (file)
@@ -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[pin_id].name,
+               dev_dbg(info->dev, "%s: 0x%x 0x%08lx", info->pins[pin_id].name,
                                pin->mux_mode, pin->config);
        }