[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210601074937.10478-1-thunder.leizhen@huawei.com>
Date: Tue, 1 Jun 2021 15:49:37 +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: tc6387xb: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code
No functional change.
Signed-off-by: Zhen Lei <thunder.leizhen@...wei.com>
---
drivers/mfd/tc6387xb.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/drivers/mfd/tc6387xb.c b/drivers/mfd/tc6387xb.c
index e846e4d26b6eb2a..5676949354643ed 100644
--- a/drivers/mfd/tc6387xb.c
+++ b/drivers/mfd/tc6387xb.c
@@ -26,16 +26,8 @@ struct tc6387xb {
};
static const struct resource tc6387xb_mmc_resources[] = {
- {
- .start = 0x800,
- .end = 0x9ff,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = 0,
- .end = 0,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_MEM(0x800, 0x200),
+ DEFINE_RES_IRQ(0)
};
/*--------------------------------------------------------------------------*/
--
2.26.0.106.g9fadedd
Powered by blists - more mailing lists