mfd: tps80031: Use DEFINE_RES_IRQ() to simplify code
authorZhen Lei <thunder.leizhen@huawei.com>
Tue, 1 Jun 2021 07:21:32 +0000 (15:21 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 2 Jun 2021 09:51:19 +0000 (10:51 +0100)
No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps80031.c

index 902e33548dd0cc5d0e045b5550a2fa76f1780630..3c4e62c3406ab38de746ae8f6cd714205af41b39 100644 (file)
 #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 */