Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Andy Shevchenko and committed by
Lee Jones
7ff7d5ff 6e1f1b1c

+1 -2
+1 -2
drivers/mfd/syscon.c
··· 101 101 } 102 102 } 103 103 104 - syscon_config.name = kasprintf(GFP_KERNEL, "%pOFn@%llx", np, 105 - (u64)res.start); 104 + syscon_config.name = kasprintf(GFP_KERNEL, "%pOFn@%pa", np, &res.start); 106 105 syscon_config.reg_stride = reg_io_width; 107 106 syscon_config.val_bits = reg_io_width * 8; 108 107 syscon_config.max_register = resource_size(&res) - reg_io_width;