Skip to contentSkip to conversation

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

PATCH In review Zhen Lei 2 participants 2 messages Jun 1, 2021 Multifunction devices (MFD)

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

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

No functional change.

---
 drivers/mfd/t7l66xb.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
drivers/mfd/t7l66xb.c +2 -10
index 70da0c4ae457e79..5369c67e3280d71 100644
@@ -37,16 +37,8 @@ enum {
 };
 
 static const struct resource t7l66xb_mmc_resources[] = {
-	{
-		.start = 0x800,
-		.end	= 0x9ff,
-		.flags = IORESOURCE_MEM,
-	},
-	{
-		.start = IRQ_T7L66XB_MMC,
-		.end	= IRQ_T7L66XB_MMC,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_MEM(0x800, 0x200),
+	DEFINE_RES_IRQ(IRQ_T7L66XB_MMC)
 };
 
 #define SCR_REVID	0x08		/* b Revision ID	*/
Signature · 1 line
2.26.0.106.g9fadedd
#1 lore raw
Quoted 6 lines · Zhen Lei

No functional change.

---
 drivers/mfd/t7l66xb.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

All 8 patches applied, thanks.

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