Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Andy Shevchenko and committed by
Lee Jones
0ce8ea71 95d617b4

+5 -30
+5 -30
drivers/mfd/intel_soc_pmic_crc.c
··· 36 36 #define CRYSTAL_COVE_IRQ_VHDMIOCP 6 37 37 38 38 static struct resource gpio_resources[] = { 39 - { 40 - .name = "GPIO", 41 - .start = CRYSTAL_COVE_IRQ_GPIO, 42 - .end = CRYSTAL_COVE_IRQ_GPIO, 43 - .flags = IORESOURCE_IRQ, 44 - }, 39 + DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_GPIO, "GPIO"), 45 40 }; 46 41 47 42 static struct resource pwrsrc_resources[] = { 48 - { 49 - .name = "PWRSRC", 50 - .start = CRYSTAL_COVE_IRQ_PWRSRC, 51 - .end = CRYSTAL_COVE_IRQ_PWRSRC, 52 - .flags = IORESOURCE_IRQ, 53 - }, 43 + DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_PWRSRC, "PWRSRC"), 54 44 }; 55 45 56 46 static struct resource adc_resources[] = { 57 - { 58 - .name = "ADC", 59 - .start = CRYSTAL_COVE_IRQ_ADC, 60 - .end = CRYSTAL_COVE_IRQ_ADC, 61 - .flags = IORESOURCE_IRQ, 62 - }, 47 + DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_ADC, "ADC"), 63 48 }; 64 49 65 50 static struct resource thermal_resources[] = { 66 - { 67 - .name = "THERMAL", 68 - .start = CRYSTAL_COVE_IRQ_THRM, 69 - .end = CRYSTAL_COVE_IRQ_THRM, 70 - .flags = IORESOURCE_IRQ, 71 - }, 51 + DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_THRM, "THERMAL"), 72 52 }; 73 53 74 54 static struct resource bcu_resources[] = { 75 - { 76 - .name = "BCU", 77 - .start = CRYSTAL_COVE_IRQ_BCU, 78 - .end = CRYSTAL_COVE_IRQ_BCU, 79 - .flags = IORESOURCE_IRQ, 80 - }, 55 + DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_BCU, "BCU"), 81 56 }; 82 57 83 58 static struct mfd_cell crystal_cove_byt_dev[] = {