Commit 0ce8ea71 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Lee Jones

mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro

Instead of open coding each data structure with IRQ resources,
use dedicated macro.

No functional change intended.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 95d617b4
...@@ -36,48 +36,23 @@ ...@@ -36,48 +36,23 @@
#define CRYSTAL_COVE_IRQ_VHDMIOCP 6 #define CRYSTAL_COVE_IRQ_VHDMIOCP 6
static struct resource gpio_resources[] = { static struct resource gpio_resources[] = {
{ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_GPIO, "GPIO"),
.name = "GPIO",
.start = CRYSTAL_COVE_IRQ_GPIO,
.end = CRYSTAL_COVE_IRQ_GPIO,
.flags = IORESOURCE_IRQ,
},
}; };
static struct resource pwrsrc_resources[] = { static struct resource pwrsrc_resources[] = {
{ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_PWRSRC, "PWRSRC"),
.name = "PWRSRC",
.start = CRYSTAL_COVE_IRQ_PWRSRC,
.end = CRYSTAL_COVE_IRQ_PWRSRC,
.flags = IORESOURCE_IRQ,
},
}; };
static struct resource adc_resources[] = { static struct resource adc_resources[] = {
{ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_ADC, "ADC"),
.name = "ADC",
.start = CRYSTAL_COVE_IRQ_ADC,
.end = CRYSTAL_COVE_IRQ_ADC,
.flags = IORESOURCE_IRQ,
},
}; };
static struct resource thermal_resources[] = { static struct resource thermal_resources[] = {
{ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_THRM, "THERMAL"),
.name = "THERMAL",
.start = CRYSTAL_COVE_IRQ_THRM,
.end = CRYSTAL_COVE_IRQ_THRM,
.flags = IORESOURCE_IRQ,
},
}; };
static struct resource bcu_resources[] = { static struct resource bcu_resources[] = {
{ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_BCU, "BCU"),
.name = "BCU",
.start = CRYSTAL_COVE_IRQ_BCU,
.end = CRYSTAL_COVE_IRQ_BCU,
.flags = IORESOURCE_IRQ,
},
}; };
static struct mfd_cell crystal_cove_byt_dev[] = { static struct mfd_cell crystal_cove_byt_dev[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment