Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1204296
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 6/6] mfd: da9150: Use DEFINE_RES_IRQ_NAMED() help macro for IRQ resource |
| Date | 2015-08-10 16:00 +0200 |
| Message-ID | <pVVMm-88D-15@gated-at.bofh.it> (permalink) |
| References | <pTN6y-7fJ-11@gated-at.bofh.it> <pTN6z-7fJ-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 04 Aug 2015, Adam Thomson wrote:
> Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
> ---
>
> Changes in v4:
> - N/A
>
> Changes in v3:
> - Initial version.
>
> Changes in v2:
> - N/A
>
> drivers/mfd/da9150-core.c | 35 +++++------------------------------
> 1 file changed, 5 insertions(+), 30 deletions(-)
Perhaps a Suggested-by for this and the relative paths patch wouldn't
go amiss, but it's not a show stopper.
Acked-by: Lee Jones <lee.jones@linaro.org>
> diff --git a/drivers/mfd/da9150-core.c b/drivers/mfd/da9150-core.c
> index 85ca4b5..195fdcf 100644
> --- a/drivers/mfd/da9150-core.c
> +++ b/drivers/mfd/da9150-core.c
> @@ -355,39 +355,14 @@ static const struct regmap_irq_chip da9150_regmap_irq_chip = {
> };
>
> static struct resource da9150_gpadc_resources[] = {
> - {
> - .name = "GPADC",
> - .start = DA9150_IRQ_GPADC,
> - .end = DA9150_IRQ_GPADC,
> - .flags = IORESOURCE_IRQ,
> - },
> + DEFINE_RES_IRQ_NAMED(DA9150_IRQ_GPADC, "GPADC"),
> };
>
> static struct resource da9150_charger_resources[] = {
> - {
> - .name = "CHG_STATUS",
> - .start = DA9150_IRQ_CHG,
> - .end = DA9150_IRQ_CHG,
> - .flags = IORESOURCE_IRQ,
> - },
> - {
> - .name = "CHG_TJUNC",
> - .start = DA9150_IRQ_TJUNC,
> - .end = DA9150_IRQ_TJUNC,
> - .flags = IORESOURCE_IRQ,
> - },
> - {
> - .name = "CHG_VFAULT",
> - .start = DA9150_IRQ_VFAULT,
> - .end = DA9150_IRQ_VFAULT,
> - .flags = IORESOURCE_IRQ,
> - },
> - {
> - .name = "CHG_VBUS",
> - .start = DA9150_IRQ_VBUS,
> - .end = DA9150_IRQ_VBUS,
> - .flags = IORESOURCE_IRQ,
> - },
> + DEFINE_RES_IRQ_NAMED(DA9150_IRQ_CHG, "CHG_STATUS"),
> + DEFINE_RES_IRQ_NAMED(DA9150_IRQ_TJUNC, "CHG_TJUNC"),
> + DEFINE_RES_IRQ_NAMED(DA9150_IRQ_VFAULT, "CHG_VFAULT"),
> + DEFINE_RES_IRQ_NAMED(DA9150_IRQ_VBUS, "CHG_VBUS"),
> };
>
> static struct resource da9150_fg_resources[] = {
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 6/6] mfd: da9150: Use DEFINE_RES_IRQ_NAMED() help macro for IRQ resource Adam Thomson <Adam.Thomson.Opensource@diasemi.com> - 2015-08-04 18:20 +0200 Re: [PATCH v4 6/6] mfd: da9150: Use DEFINE_RES_IRQ_NAMED() help macro for IRQ resource Lee Jones <lee.jones@linaro.org> - 2015-08-10 16:00 +0200
csiph-web