diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-06-01 15:47:06 +0800 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-06-02 10:51:19 +0100 |
commit | 81a22c3378ba3ff744f083a49daad129834201a7 (patch) | |
tree | d310da573d77cc80588f9210fd2b8cbfe6eec741 /drivers/mfd | |
parent | a75f4d1f468319d8db755d0ea2b771113356d494 (diff) |
mfd: t7l66xb: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code
No functional change.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/t7l66xb.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 70da0c4ae457..5369c67e3280 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c @@ -37,16 +37,8 @@ enum { }; static const struct resource t7l66xb_mmc_resources[] = { - { - .start = 0x800, - .end = 0x9ff, - .flags = IORESOURCE_MEM, - }, - { - .start = IRQ_T7L66XB_MMC, - .end = IRQ_T7L66XB_MMC, - .flags = IORESOURCE_IRQ, - }, + DEFINE_RES_MEM(0x800, 0x200), + DEFINE_RES_IRQ(IRQ_T7L66XB_MMC) }; #define SCR_REVID 0x08 /* b Revision ID */ |