projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ac4b85
)
mfd: tps80031: Use DEFINE_RES_IRQ() to simplify code
author
Zhen Lei
<thunder.leizhen@huawei.com>
Tue, 1 Jun 2021 07:21:32 +0000
(15:21 +0800)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 2 Jun 2021 09:51:19 +0000
(10:51 +0100)
No functional change.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps80031.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/tps80031.c
b/drivers/mfd/tps80031.c
index 902e33548dd0cc5d0e045b5550a2fa76f1780630..3c4e62c3406ab38de746ae8f6cd714205af41b39 100644
(file)
--- 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 */