[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d9931275ceb41d80fff494112077758500e455ad.1524646231.git.sean.wang@mediatek.com>
Date: Wed, 25 Apr 2018 17:32:33 +0800
From: <sean.wang@...iatek.com>
To: <robh+dt@...nel.org>, <mark.rutland@....com>, <sre@...nel.org>,
<lee.jones@...aro.org>, <a.zummo@...ertech.it>,
<alexandre.belloni@...e-electrons.com>, <matthias.bgg@...il.com>,
<eddie.huang@...iatek.com>
CC: <devicetree@...r.kernel.org>, <linux-rtc@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-pm@...r.kernel.org>,
<linux-mediatek@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, Sean Wang <sean.wang@...iatek.com>
Subject: [PATCH v2 07/17] mfd: mt6397: reuse DEFINE_RES_* helpers
From: Sean Wang <sean.wang@...iatek.com>
Reuse DEFINE_RES_* helpers instead of an open-coded handling.
Signed-off-by: Sean Wang <sean.wang@...iatek.com>
---
drivers/mfd/mt6397-core.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c
index c4ad5c3..e0012e2 100644
--- a/drivers/mfd/mt6397-core.c
+++ b/drivers/mfd/mt6397-core.c
@@ -43,16 +43,8 @@ static const struct resource mt6323_rtc_resources[] = {
};
static const struct resource mt6397_rtc_resources[] = {
- {
- .start = MT6397_RTC_BASE,
- .end = MT6397_RTC_BASE + MT6397_RTC_SIZE,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = MT6397_IRQ_RTC,
- .end = MT6397_IRQ_RTC,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_MEM(MT6397_RTC_BASE, MT6397_RTC_SIZE),
+ DEFINE_RES_IRQ(MT6397_IRQ_RTC),
};
static const struct resource mt6323_keys_resources[] = {
--
2.7.4
Powered by blists - more mailing lists