[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240412005128.2937486-1-peng.fan@oss.nxp.com>
Date: Fri, 12 Apr 2024 08:51:28 +0800
From: "Peng Fan (OSS)" <peng.fan@....nxp.com>
To: linus.walleij@...aro.org,
brgl@...ev.pl,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Peng Fan <peng.fan@....com>
Subject: [PATCH] pinctrl: pinconf-generic: print hex value
From: Peng Fan <peng.fan@....com>
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@....com>
---
drivers/pinctrl/pinconf-generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c
index 541c2ac9ffcb..8bfdf1e922d7 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);
--
2.37.1
Powered by blists - more mailing lists