From: Zhen Lei Date: Tue, 1 Jun 2021 07:21:32 +0000 (+0800) Subject: mfd: tps80031: Use DEFINE_RES_IRQ() to simplify code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a5b42f66878a0b4b01daa78f0869d42684d88bc7;p=linux.git mfd: tps80031: Use DEFINE_RES_IRQ() to simplify code No functional change. Signed-off-by: Zhen Lei Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/tps80031.c b/drivers/mfd/tps80031.c index 902e33548dd0c..3c4e62c3406ab 100644 --- a/drivers/mfd/tps80031.c +++ b/drivers/mfd/tps80031.c @@ -35,11 +35,7 @@ #include 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 */