[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210601072132.10257-1-thunder.leizhen@huawei.com>
Date: Tue, 1 Jun 2021 15:21:32 +0800
From: Zhen Lei <thunder.leizhen@...wei.com>
To: Lee Jones <lee.jones@...aro.org>,
linux-kernel <linux-kernel@...r.kernel.org>
CC: Zhen Lei <thunder.leizhen@...wei.com>
Subject: [PATCH 1/1] mfd: tps80031: Use DEFINE_RES_IRQ() to simplify code
No functional change.
Signed-off-by: Zhen Lei <thunder.leizhen@...wei.com>
---
drivers/mfd/tps80031.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/mfd/tps80031.c b/drivers/mfd/tps80031.c
index 902e33548dd0cc5..3c4e62c3406ab38 100644
--- a/drivers/mfd/tps80031.c
+++ b/drivers/mfd/tps80031.c
@@ -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 */
--
2.26.0.106.g9fadedd
Powered by blists - more mailing lists