[PATCH 1/1] mfd: tc6387xb: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code

From: Zhen Lei
Date: Tue Jun 01 2021 - 03:49:45 EST


No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>
---
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