All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] of: unittest: Use DEFINE_RES_MEM() to simplify code
@ 2021-06-01  6:22 Zhen Lei
  2021-06-04 21:47 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Zhen Lei @ 2021-06-01  6:22 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand, devicetree, linux-kernel; +Cc: Zhen Lei

No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 drivers/of/unittest.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 819a20acaa93986..8c056972a6ddc72 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -1209,11 +1209,7 @@ static void __init of_unittest_match_node(void)
 	}
 }
 
-static struct resource test_bus_res = {
-	.start = 0xfffffff8,
-	.end = 0xfffffff9,
-	.flags = IORESOURCE_MEM,
-};
+static struct resource test_bus_res = DEFINE_RES_MEM(0xfffffff8, 2);
 static const struct platform_device_info test_bus_info = {
 	.name = "unittest-bus",
 };
-- 
2.26.0.106.g9fadedd



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

* Re: [PATCH 1/1] of: unittest: Use DEFINE_RES_MEM() to simplify code
  2021-06-01  6:22 [PATCH 1/1] of: unittest: Use DEFINE_RES_MEM() to simplify code Zhen Lei
@ 2021-06-04 21:47 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2021-06-04 21:47 UTC (permalink / raw)
  To: Zhen Lei; +Cc: Rob Herring, Frank Rowand, devicetree, linux-kernel

On Tue, 01 Jun 2021 14:22:23 +0800, Zhen Lei wrote:
> No functional change.
> 
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
> ---
>  drivers/of/unittest.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 

Applied, thanks!

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

end of thread, other threads:[~2021-06-04 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01  6:22 [PATCH 1/1] of: unittest: Use DEFINE_RES_MEM() to simplify code Zhen Lei
2021-06-04 21:47 ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.