diff options
author | Peng Fan <peng.fan@nxp.com> | 2024-04-12 03:51:28 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-04-17 11:53:44 +0300 |
commit | 3ba11e684d163f4ab17719a8bbe1382276312e27 (patch) | |
tree | 85f05c824a5b51772f5d1759b01e2786d2ae3635 /drivers/pinctrl/pinconf-generic.c | |
parent | 9d2df36538d5ad7338007dc5726dabca4aa16813 (diff) | |
download | linux-3ba11e684d163f4ab17719a8bbe1382276312e27.tar.xz |
pinctrl: pinconf-generic: print hex value
Hex value will be easier to match hardware register bits layout,
so same as pinconf_generic_dump_config, print hex value.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Message-ID: <20240412005128.2937486-1-peng.fan@oss.nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinconf-generic.c')
-rw-r--r-- | drivers/pinctrl/pinconf-generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c index cada5d18ffae..80de389199bd 100644 --- a/drivers/pinctrl/pinconf-generic.c +++ b/drivers/pinctrl/pinconf-generic.c @@ -88,7 +88,7 @@ static void pinconf_generic_dump_one(struct pinctrl_dev *pctldev, seq_puts(s, items[i].display); /* Print unit if available */ if (items[i].has_arg) { - seq_printf(s, " (%u", + seq_printf(s, " (0x%x", pinconf_to_config_argument(config)); if (items[i].format) seq_printf(s, " %s)", items[i].format); |