The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Axel Lin <axel.lin@ingics.com>
Cc: Laxman Dewangan <ldewangan@nvidia.com>,
	Mallikarjun Kasoju <mkasoju@nvidia.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: max77620: Constify resources tables
Date: Wed, 8 Jun 2016 16:39:57 +0100	[thread overview]
Message-ID: <20160608153957.GZ14888@dell> (raw)
In-Reply-To: <1465115297.8962.1.camel@ingics.com>

On Sun, 05 Jun 2016, Axel Lin wrote:

> These tables are never modified, so declare them as const.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/mfd/max77620.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c
> index 199d261..e831422 100644
> --- a/drivers/mfd/max77620.c
> +++ b/drivers/mfd/max77620.c
> @@ -37,19 +37,19 @@
>  #include <linux/regmap.h>
>  #include <linux/slab.h>
>  
> -static struct resource gpio_resources[] = {
> +static const struct resource gpio_resources[] = {
>  	DEFINE_RES_IRQ(MAX77620_IRQ_TOP_GPIO),
>  };
>  
> -static struct resource power_resources[] = {
> +static const struct resource power_resources[] = {
>  	DEFINE_RES_IRQ(MAX77620_IRQ_LBT_MBATLOW),
>  };
>  
> -static struct resource rtc_resources[] = {
> +static const struct resource rtc_resources[] = {
>  	DEFINE_RES_IRQ(MAX77620_IRQ_TOP_RTC),
>  };
>  
> -static struct resource thermal_resources[] = {
> +static const struct resource thermal_resources[] = {
>  	DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM1),
>  	DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM2),
>  };

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

      reply	other threads:[~2016-06-08 15:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-05  8:28 [PATCH] mfd: max77620: Constify resources tables Axel Lin
2016-06-08 15:39 ` 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=20160608153957.GZ14888@dell \
    --to=lee.jones@linaro.org \
    --cc=axel.lin@ingics.com \
    --cc=ldewangan@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkasoju@nvidia.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