From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Lee Jones <lee.jones@linaro.org>,
Hans de Goede <hdegoede@redhat.com>,
linux-kernel@vger.kernel.org,
Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro
Date: Thu, 30 Aug 2018 19:52:50 +0300 [thread overview]
Message-ID: <20180830165255.43114-2-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20180830165255.43114-1-andriy.shevchenko@linux.intel.com>
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>
---
drivers/mfd/intel_soc_pmic_crc.c | 35 +++++---------------------------
1 file changed, 5 insertions(+), 30 deletions(-)
diff --git a/drivers/mfd/intel_soc_pmic_crc.c b/drivers/mfd/intel_soc_pmic_crc.c
index 6d19a6d0fb97..de3f31266c57 100644
--- a/drivers/mfd/intel_soc_pmic_crc.c
+++ b/drivers/mfd/intel_soc_pmic_crc.c
@@ -36,48 +36,23 @@
#define CRYSTAL_COVE_IRQ_VHDMIOCP 6
static struct resource gpio_resources[] = {
- {
- .name = "GPIO",
- .start = CRYSTAL_COVE_IRQ_GPIO,
- .end = CRYSTAL_COVE_IRQ_GPIO,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_GPIO, "GPIO"),
};
static struct resource pwrsrc_resources[] = {
- {
- .name = "PWRSRC",
- .start = CRYSTAL_COVE_IRQ_PWRSRC,
- .end = CRYSTAL_COVE_IRQ_PWRSRC,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_PWRSRC, "PWRSRC"),
};
static struct resource adc_resources[] = {
- {
- .name = "ADC",
- .start = CRYSTAL_COVE_IRQ_ADC,
- .end = CRYSTAL_COVE_IRQ_ADC,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_ADC, "ADC"),
};
static struct resource thermal_resources[] = {
- {
- .name = "THERMAL",
- .start = CRYSTAL_COVE_IRQ_THRM,
- .end = CRYSTAL_COVE_IRQ_THRM,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_THRM, "THERMAL"),
};
static struct resource bcu_resources[] = {
- {
- .name = "BCU",
- .start = CRYSTAL_COVE_IRQ_BCU,
- .end = CRYSTAL_COVE_IRQ_BCU,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_BCU, "BCU"),
};
static struct mfd_cell crystal_cove_byt_dev[] = {
--
2.18.0
next prev parent reply other threads:[~2018-08-30 16:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
2018-08-30 16:52 ` Andy Shevchenko [this message]
2018-08-31 12:53 ` [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro Mika Westerberg
2018-09-10 15:51 ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro Andy Shevchenko
2018-08-31 12:54 ` Mika Westerberg
2018-09-10 15:51 ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well Andy Shevchenko
2018-08-31 12:54 ` Mika Westerberg
2018-09-10 15:51 ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers Andy Shevchenko
2018-08-31 12:55 ` Mika Westerberg
2018-09-10 15:51 ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier Andy Shevchenko
2018-08-31 12:56 ` Mika Westerberg
2018-09-10 15:51 ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC Andy Shevchenko
2018-08-31 12:57 ` Mika Westerberg
2018-09-10 15:52 ` Lee Jones
2018-08-31 12:53 ` [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Mika Westerberg
2018-09-10 15:50 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180830165255.43114-2-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox