devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
	Sebastian Reichel <sre@kernel.org>,
	Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Support Opensource <support.opensource@diasemi.com>
Subject: Re: [PATCH v4 6/6] mfd: da9150: Use DEFINE_RES_IRQ_NAMED() help macro for IRQ resource
Date: Mon, 10 Aug 2015 14:58:36 +0100	[thread overview]
Message-ID: <20150810135836.GM3249@x1> (raw)
In-Reply-To: <ab8e02c022c8b90d4b65bf13e2f2c402e54f2cf5.1438692348.git.Adam.Thomson.Opensource@diasemi.com>

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

      reply	other threads:[~2015-08-10 13:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-04 16:16 [PATCH v4 0/6] Add support for DA9150 Fuel-Gauge Adam Thomson
2015-08-04 16:16 ` [PATCH v4 1/6] mfd: da9150: Add support for Fuel-Gauge Adam Thomson
2015-08-10 13:54   ` Lee Jones
2015-08-11  7:45     ` Opensource [Adam Thomson]
2015-08-04 16:16 ` [PATCH v4 2/6] mfd: da9150: Update DT bindings for Fuel-Gauge support Adam Thomson
2015-08-10 13:55   ` Lee Jones
2015-08-04 16:16 ` [PATCH v4 3/6] power: Add support for DA9150 Fuel-Gauge Adam Thomson
2015-08-24 13:22   ` Opensource [Adam Thomson]
2015-08-04 16:16 ` [PATCH v4 4/6] power: da9150: Add DT bindings documentation for Fuel-Gauge Adam Thomson
2015-08-04 16:16 ` [PATCH v4 5/6] mfd: da9150: Use relative paths in DT bindings document Adam Thomson
2015-08-10 13:57   ` Lee Jones
2015-08-04 16:16 ` [PATCH v4 6/6] mfd: da9150: Use DEFINE_RES_IRQ_NAMED() help macro for IRQ resource Adam Thomson
2015-08-10 13:58   ` Lee Jones [this message]

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=20150810135836.GM3249@x1 \
    --to=lee.jones@linaro.org \
    --cc=Adam.Thomson.Opensource@diasemi.com \
    --cc=dbaryshkov@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dwmw2@infradead.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sameo@linux.intel.com \
    --cc=sre@kernel.org \
    --cc=support.opensource@diasemi.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;
as well as URLs for NNTP newsgroup(s).