diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-05-31 22:24:04 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-07-19 11:54:39 +0200 |
commit | 7ff7d5ffb7259f78f87cd0db59d8656799aee8c3 (patch) | |
tree | 7bc73c1ad3048a39189174f67b8290b4eafebb57 /drivers/mfd | |
parent | mfd: tc6387xb: Drop disable callback that is never called (diff) | |
download | linux-7ff7d5ffb7259f78f87cd0db59d8656799aee8c3.tar.xz linux-7ff7d5ffb7259f78f87cd0db59d8656799aee8c3.zip |
syscon: Use %pa to format the variable of resource_size_t type
Instead of explicit casting, use %pa specifier to format
the variable of resource_size_t type.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220531202404.70282-1-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/syscon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 191fdb87c424..bdb2ce7ff03b 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -101,8 +101,7 @@ static struct syscon *of_syscon_register(struct device_node *np, bool check_clk) } } - syscon_config.name = kasprintf(GFP_KERNEL, "%pOFn@%llx", np, - (u64)res.start); + syscon_config.name = kasprintf(GFP_KERNEL, "%pOFn@%pa", np, &res.start); syscon_config.reg_stride = reg_io_width; syscon_config.val_bits = reg_io_width * 8; syscon_config.max_register = resource_size(&res) - reg_io_width; |