Skip to contentSkip to conversation

mfd: asic3: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code

PATCH New Zhen Lei 1 participant 1 message Jun 1, 2021 Multifunction devices (MFD)

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

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

No functional change.

---
 drivers/mfd/asic3.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
drivers/mfd/asic3.c +2 -10
index a6bd2134cea2ae8..8d58c8df46cfb83 100644
@@ -723,16 +723,8 @@ static struct tmio_mmc_data asic3_mmc_data = {
 };
 
 static struct resource asic3_mmc_resources[] = {
-	{
-		.start = ASIC3_SD_CTRL_BASE,
-		.end   = ASIC3_SD_CTRL_BASE + 0x3ff,
-		.flags = IORESOURCE_MEM,
-	},
-	{
-		.start = 0,
-		.end   = 0,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_MEM(ASIC3_SD_CTRL_BASE, 0x400),
+	DEFINE_RES_IRQ(0)
 };
 
 static int asic3_mmc_enable(struct platform_device *pdev)
Signature · 1 line
2.26.0.106.g9fadedd