projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1f1b1
)
syscon: Use %pa to format the variable of resource_size_t type
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Tue, 31 May 2022 20:24:04 +0000
(23:24 +0300)
committer
Lee Jones
<lee@kernel.org>
Tue, 19 Jul 2022 09:54:39 +0000
(10:54 +0100)
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
drivers/mfd/syscon.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/syscon.c
b/drivers/mfd/syscon.c
index
191fdb8
..
bdb2ce7
100644
(file)
--- 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;