summaryrefslogtreecommitdiff
path: root/drivers/mfd/as3722.c
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-06-01 10:31:42 +0300
committerLee Jones <lee.jones@linaro.org>2021-06-02 12:51:19 +0300
commitf928fe143599bb3d28c448398cea1b237c2e7e6e (patch)
tree87ead51c2512b613fa40a61b27b4f354673dd127 /drivers/mfd/as3722.c
parent81a22c3378ba3ff744f083a49daad129834201a7 (diff)
downloadlinux-f928fe143599bb3d28c448398cea1b237c2e7e6e.tar.xz
mfd: as3722: Use DEFINE_RES_IRQ_NAMED() 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/as3722.c')
-rw-r--r--drivers/mfd/as3722.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/mfd/as3722.c b/drivers/mfd/as3722.c
index 59dfeff71592..38665efae4f0 100644
--- a/drivers/mfd/as3722.c
+++ b/drivers/mfd/as3722.c
@@ -24,21 +24,11 @@
#define AS3722_DEVICE_ID 0x0C
static const struct resource as3722_rtc_resource[] = {
- {
- .name = "as3722-rtc-alarm",
- .start = AS3722_IRQ_RTC_ALARM,
- .end = AS3722_IRQ_RTC_ALARM,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_IRQ_NAMED(AS3722_IRQ_RTC_ALARM, "as3722-rtc-alarm"),
};
static const struct resource as3722_adc_resource[] = {
- {
- .name = "as3722-adc",
- .start = AS3722_IRQ_ADC,
- .end = AS3722_IRQ_ADC,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_IRQ_NAMED(AS3722_IRQ_ADC, "as3722-adc"),
};
static const struct mfd_cell as3722_devs[] = {