summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-06-01 15:21:32 +0800
committerLee Jones <lee.jones@linaro.org>2021-06-02 10:51:19 +0100
commita5b42f66878a0b4b01daa78f0869d42684d88bc7 (patch)
treec47c5cb02998465c99069de009e3df29c35b3d64 /drivers/mfd
parent5ac4b8509fdd8131bd2ee0152c9de8aef30e3863 (diff)
downloadlinux-a5b42f66878a0b4b01daa78f0869d42684d88bc7.tar.bz2
mfd: tps80031: Use 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/tps80031.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mfd/tps80031.c b/drivers/mfd/tps80031.c
index 902e33548dd0..3c4e62c3406a 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 */