linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/1] syscon: Use %pa to format the variable of resource_size_t type
@ 2022-05-31 20:24 Andy Shevchenko
  2022-05-31 20:31 ` Arnd Bergmann
  2022-06-15 21:09 ` Lee Jones
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2022-05-31 20:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: Lee Jones, Arnd Bergmann, Andy Shevchenko

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>
---
 drivers/mfd/syscon.c | 3 +--
 1 file changed, 1 insertion(+), 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;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] syscon: Use %pa to format the variable of resource_size_t type
  2022-05-31 20:24 [PATCH v1 1/1] syscon: Use %pa to format the variable of resource_size_t type Andy Shevchenko
@ 2022-05-31 20:31 ` Arnd Bergmann
  2022-06-15 21:09 ` Lee Jones
  1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2022-05-31 20:31 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-kernel, Lee Jones, Arnd Bergmann

On Tue, May 31, 2022 at 10:24 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> 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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] syscon: Use %pa to format the variable of resource_size_t type
  2022-05-31 20:24 [PATCH v1 1/1] syscon: Use %pa to format the variable of resource_size_t type Andy Shevchenko
  2022-05-31 20:31 ` Arnd Bergmann
@ 2022-06-15 21:09 ` Lee Jones
  1 sibling, 0 replies; 3+ messages in thread
From: Lee Jones @ 2022-06-15 21:09 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-kernel, Arnd Bergmann

On Tue, 31 May 2022, Andy Shevchenko wrote:

> 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>
> ---
>  drivers/mfd/syscon.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Principal Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-15 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 20:24 [PATCH v1 1/1] syscon: Use %pa to format the variable of resource_size_t type Andy Shevchenko
2022-05-31 20:31 ` Arnd Bergmann
2022-06-15 21:09 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).