Skip to contentSkip to conversation

mfd: tps80031: Use 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: tps80031: Use DEFINE_RES_IRQ() to simplify code

No functional change.

---
 drivers/mfd/tps80031.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/mfd/tps80031.c +1 -5
index 902e33548dd0cc5..3c4e62c3406ab38 100644
@@ -35,11 +35,7 @@
 #include <linux/slab.h>
 
 static const struct resource tps80031_rtc_resources[] = {
-	{
-		.start = TPS80031_INT_RTC_ALARM,
-		.end = TPS80031_INT_RTC_ALARM,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(TPS80031_INT_RTC_ALARM),
 };
 
 /* TPS80031 sub mfd devices */
Signature · 1 line
2.26.0.106.g9fadedd