Skip to contentSkip to conversation

fjes: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code

PATCH Applied Zhen Lei 2 participants 2 messages Jun 1, 2021

Subsystems (2)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 fjes: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code

No functional change.

---
 drivers/net/fjes/fjes_main.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
drivers/net/fjes/fjes_main.c +2 -10
index 466622664424dcd..d098b1fcf0067b1 100644
@@ -90,16 +90,8 @@ static struct platform_driver fjes_driver = {
 };
 
 static struct resource fjes_resource[] = {
-	{
-		.flags = IORESOURCE_MEM,
-		.start = 0,
-		.end = 0,
-	},
-	{
-		.flags = IORESOURCE_IRQ,
-		.start = 0,
-		.end = 0,
-	},
+	DEFINE_RES_MEM(0, 1),
+	DEFINE_RES_IRQ(0)
 };
 
 static bool is_extended_socket_device(struct acpi_device *device)
Signature · 1 line
2.26.0.106.g9fadedd
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 6 lines · On Tue, 1 Jun 2021 14:27:36 +0800 you wrote:

No functional change.

---
 drivers/net/fjes/fjes_main.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

Here is the summary with links:
- [1/1] fjes: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code

    https://git.kernel.org/netdev/net-next/c/d153ef5ce7db

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html