Skip to contentSkip to conversation

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

No functional change.

---
 drivers/mfd/as3722.c | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)
drivers/mfd/as3722.c +2 -12
index 59dfeff71592696..38665efae4f005f 100644
@@ -24,21 +24,11 @@
 #define AS3722_DEVICE_ID	0x0C
 
 static const struct resource as3722_rtc_resource[] = {
-	{
-		.name = "as3722-rtc-alarm",
-		.start = AS3722_IRQ_RTC_ALARM,
-		.end = AS3722_IRQ_RTC_ALARM,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ_NAMED(AS3722_IRQ_RTC_ALARM, "as3722-rtc-alarm"),
 };
 
 static const struct resource as3722_adc_resource[] = {
-	{
-		.name = "as3722-adc",
-		.start = AS3722_IRQ_ADC,
-		.end = AS3722_IRQ_ADC,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ_NAMED(AS3722_IRQ_ADC, "as3722-adc"),
 };
 
 static const struct mfd_cell as3722_devs[] = {
Signature · 1 line
2.26.0.106.g9fadedd