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>
This commit is contained in:
Zhen Lei 2021-06-01 15:31:42 +08:00 committed by Lee Jones
parent 81a22c3378
commit f928fe1435

View File

@ -24,21 +24,11 @@
#define AS3722_DEVICE_ID 0x0C #define AS3722_DEVICE_ID 0x0C
static const struct resource as3722_rtc_resource[] = { static const struct resource as3722_rtc_resource[] = {
{ DEFINE_RES_IRQ_NAMED(AS3722_IRQ_RTC_ALARM, "as3722-rtc-alarm"),
.name = "as3722-rtc-alarm",
.start = AS3722_IRQ_RTC_ALARM,
.end = AS3722_IRQ_RTC_ALARM,
.flags = IORESOURCE_IRQ,
},
}; };
static const struct resource as3722_adc_resource[] = { static const struct resource as3722_adc_resource[] = {
{ DEFINE_RES_IRQ_NAMED(AS3722_IRQ_ADC, "as3722-adc"),
.name = "as3722-adc",
.start = AS3722_IRQ_ADC,
.end = AS3722_IRQ_ADC,
.flags = IORESOURCE_IRQ,
},
}; };
static const struct mfd_cell as3722_devs[] = { static const struct mfd_cell as3722_devs[] = {